summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThe Qt Project <gerrit-noreply@qt-project.org>2022-12-05 12:11:02 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2022-12-05 12:11:02 +0000
commita4b06facbdeb370c4fcf721eca266fca19e4fe59 (patch)
tree24e30ce4b12020e269665cbbf51fedc950a7cfc4 /tests
parente43d0f5d2635c941801abea923ce8764f360c63d (diff)
parent81264ab29db302a1e2393f3be664de2c6991726d (diff)
Merge "Merge remote-tracking branch 'origin/9.0'"
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/finddebugsym/tst_finddebugsym.cpp5
-rw-r--r--tests/auto/perfdata/tst_perfdata.cpp6
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/auto/finddebugsym/tst_finddebugsym.cpp b/tests/auto/finddebugsym/tst_finddebugsym.cpp
index c298749..fb45852 100644
--- a/tests/auto/finddebugsym/tst_finddebugsym.cpp
+++ b/tests/auto/finddebugsym/tst_finddebugsym.cpp
@@ -29,8 +29,6 @@
#include "perfsymboltable.h"
-QFileInfo findDebugInfoFile(const QString& root, const QString& file, const QString& debugLinkString);
-
class TestFindDebugSymbols : public QObject
{
Q_OBJECT
@@ -86,7 +84,8 @@ private slots:
QFETCH(QString, file);
QFETCH(QString, debugLinkString);
- auto debugFile = findDebugInfoFile(tempDir.path() + QDir::separator(), root, file);
+ auto debugFile = PerfSymbolTable::findDebugInfoFile(
+ tempDir.path() + QDir::separator(), root, file);
QCOMPARE(debugFile.absoluteFilePath(), QFileInfo(tempDir.path() + debugLinkString).absoluteFilePath());
}
diff --git a/tests/auto/perfdata/tst_perfdata.cpp b/tests/auto/perfdata/tst_perfdata.cpp
index cec1ea7..caa20e3 100644
--- a/tests/auto/perfdata/tst_perfdata.cpp
+++ b/tests/auto/perfdata/tst_perfdata.cpp
@@ -282,9 +282,9 @@ void TestPerfData::testFiles()
const auto perfDataFile = QFINDTESTDATA(dataFile);
QVERIFY(!perfDataFile.isEmpty() && QFile::exists(perfDataFile));
- const auto expectedOutputFileCompressed = perfDataFile + ".expected.txt.zlib";
- const auto expectedOutputFileUncompressed = perfDataFile + ".expected.txt";
- const auto actualOutputFile = perfDataFile + ".actual.txt";
+ const auto expectedOutputFileCompressed = QString(perfDataFile + ".expected.txt.zlib");
+ const auto expectedOutputFileUncompressed = QString(perfDataFile + ".expected.txt");
+ const auto actualOutputFile = QString(perfDataFile + ".actual.txt");
QBuffer output;
QVERIFY(output.open(QIODevice::WriteOnly));