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>
This commit is contained in:
Robert Löhning
2023-03-09 22:30:53 +01:00
parent 3043f4bba9
commit 32c74bfe2b

View File

@@ -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