aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testconfiguration.cpp
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2016-05-23 08:45:08 +0200
committerChristian Stenger <[email protected]>2016-05-23 07:11:45 +0000
commitc2a7ad6b41b5def85c86464985cd0c76448201ad (patch)
treed00c534900eafe2c76040aaed7b9fa92848e6142 /src/plugins/autotest/testconfiguration.cpp
parenta4e96636e3196b512128ff1d7b3316bc573c6e61 (diff)
AutoTest: Fix creation of target file path for Qbs projects
Task-number: QTCREATORBUG-16323 Change-Id: I3ac59d830c098e9e7fe0d6f7dc75078f339adb6d Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testconfiguration.cpp')
-rw-r--r--src/plugins/autotest/testconfiguration.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/autotest/testconfiguration.cpp b/src/plugins/autotest/testconfiguration.cpp
index ba4597b36dc..a2563011329 100644
--- a/src/plugins/autotest/testconfiguration.cpp
+++ b/src/plugins/autotest/testconfiguration.cpp
@@ -124,7 +124,11 @@ void TestConfiguration::completeTestInformation()
foreach (const BuildTargetInfo &bti, appTargets.list) {
// some project manager store line/column information as well inside ProjectPart
if (bti.isValid() && m_proFile.startsWith(bti.projectFilePath.toString())) {
- targetFile = Utils::HostOsInfo::withExecutableSuffix(bti.targetFilePath.toString());
+ targetFile = bti.targetFilePath.toString();
+ if (Utils::HostOsInfo::isWindowsHost()
+ && !targetFile.toLower().endsWith(QLatin1String(".exe"))) {
+ targetFile = Utils::HostOsInfo::withExecutableSuffix(targetFile);
+ }
targetName = bti.targetName;
break;
}