aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testconfiguration.cpp
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2017-09-22 12:19:13 +0200
committerChristian Stenger <[email protected]>2017-09-26 07:01:04 +0000
commit9dc8b54cdb48578992f8bb9c7349fcf2d2193a89 (patch)
tree9143ee874258770d0913cfba714e3c99558efecd /src/plugins/autotest/testconfiguration.cpp
parent090dea66eea8a29dd3c7a798927dc7610c2d11ce (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testconfiguration.cpp')
-rw-r--r--src/plugins/autotest/testconfiguration.cpp2
1 files changed, 2 insertions, 0 deletions
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()) {