forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user