From 9dc8b54cdb48578992f8bb9c7349fcf2d2193a89 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 22 Sep 2017 12:19:13 +0200 Subject: [PATCH] AutoTest: Early return if fail to get local executable If we have not found a local executable any further processing is not necessary as the outcome will be the same: we will not be able to start the test runnable. Change-Id: Iaa4bbd533ced6184148f941c1cba394f9f47554d Reviewed-by: Oliver Wolff --- src/plugins/autotest/testconfiguration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/autotest/testconfiguration.cpp b/src/plugins/autotest/testconfiguration.cpp index 1bdb794abdf..00f3f0dc31d 100644 --- a/src/plugins/autotest/testconfiguration.cpp +++ b/src/plugins/autotest/testconfiguration.cpp @@ -115,6 +115,8 @@ void TestConfiguration::completeTestInformation(TestRunMode runMode) } const QString localExecutable = ensureExeEnding(targetInfo.targetFilePath.toString()); + if (localExecutable.isEmpty()) + return; QString buildBase; if (auto buildConfig = target->activeBuildConfiguration()) {