diff --git a/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp b/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp index d006f9495ed..9987781c9cc 100644 --- a/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp +++ b/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp @@ -105,7 +105,8 @@ static CommandLine subCommandLine() { QStringList args = QCoreApplication::arguments(); const QString binary = args.takeFirst(); - return CommandLine(FilePath::fromString(binary), args); + const FilePath filePath = FilePath::fromString(QDir::currentPath()).resolvePath(binary); + return CommandLine(filePath, args); } class SubCreatorConfig