summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-12-05 10:04:36 +0100
committerUlf Hermann <ulf.hermann@qt.io>2022-12-05 10:18:27 +0000
commit0e9d09e73279d0e1d9052810b1aea4fcc7915a72 (patch)
tree422070e90155de7f1b31784ae46553d0983ea354 /tests
parentab22c8582c9edec450a30edf316b078cfb10b09f (diff)
Make findDebugInfoFile() accessible from the test9.0
If it's static in perfsymboltable.cpp's file scope, we cannot use it from anywhere else. Change-Id: I60ac203120b7c88feff2acb26b224a8761469bf8 Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/finddebugsym/tst_finddebugsym.cpp5
1 files changed, 2 insertions, 3 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());
}