forked from qt-creator/qt-creator
AutoTest: Fix creation of target file path for Qbs projects
Task-number: QTCREATORBUG-16323 Change-Id: I3ac59d830c098e9e7fe0d6f7dc75078f339adb6d Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -124,7 +124,11 @@ void TestConfiguration::completeTestInformation()
|
|||||||
foreach (const BuildTargetInfo &bti, appTargets.list) {
|
foreach (const BuildTargetInfo &bti, appTargets.list) {
|
||||||
// some project manager store line/column information as well inside ProjectPart
|
// some project manager store line/column information as well inside ProjectPart
|
||||||
if (bti.isValid() && m_proFile.startsWith(bti.projectFilePath.toString())) {
|
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;
|
targetName = bti.targetName;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user