Skip to content

Commit

Permalink
speedup perfparser test by clearing DEBUGINFOD_URLS
Browse files Browse the repository at this point in the history
  • Loading branch information
GitMensch committed Jan 3, 2024
1 parent f261e72 commit eb8a371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integrationtests/tst_perfparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class TestPerfParser : public QObject
private slots:
void initTestCase()
{
qputenv("DEBUGINFOD_URLS", QByteArrayLiteral(""));
RecordHost host;
QSignalSpy capabilitiesSpy(&host, &RecordHost::perfCapabilitiesChanged);
QSignalSpy installedSpy(&host, &RecordHost::isPerfInstalledChanged);
Expand Down Expand Up @@ -242,10 +243,9 @@ private slots:
QTest::addRow("PERF v1") << QFINDTESTDATA("file_content/perf.data.true.v1") << QStringLiteral("V1 perf data")
<< 1000;

// TODO: check why we need this long waittime
QTest::addRow("PERF v2") << QFINDTESTDATA("file_content/perf.data.true.v2") << QString() << 9000;
QTest::addRow("PERF v2") << QFINDTESTDATA("file_content/perf.data.true.v2") << QString() << 1000;
#if KFArchive_FOUND
QTest::addRow("PERF v2, gzipped") << QFINDTESTDATA("file_content/perf.data.true.v2.gz") << QString() << 10000;
QTest::addRow("PERF v2, gzipped") << QFINDTESTDATA("file_content/perf.data.true.v2.gz") << QString() << 2000;
#endif
}

Expand Down

0 comments on commit eb8a371

Please sign in to comment.