summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2023-03-09 22:30:53 +0100
committerRobert Löhning <robert.loehning@qt.io>2023-03-13 13:20:34 +0000
commit32c74bfe2b6bac433c1113b8625f08d2c67dd779 (patch)
treed2c1c869d1767da9540502e93400995785e6c99a
parent3043f4bba98967c20c8d2efb91c72c0bf183363a (diff)
downloadqt-creator-32c74bfe2b6bac433c1113b8625f08d2c67dd779.tar.gz
Debugger: Fix manual plugin test
The location of the dll doesn't depend on the application's current directory but its binary's location. This caused the manual test to turn false positive when running from Creator, because on Windows, the binaries are placed in a subdirectory named "debug" or "release", respectively. Change-Id: Ie5115fbacd30ad0ef85bc258d405ae3ac42f8ece Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--tests/manual/debugger/simple/simple_test_app.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index 0f3da8bf30..5b38d85f3e 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -2172,7 +2172,7 @@ namespace plugin {
void testPlugin()
{
- QString dir = QDir::currentPath();
+ QString dir = QApplication::applicationDirPath();
#ifdef Q_OS_LINUX
QLibrary lib(dir + "/libsimple_test_plugin.so");
#endif