aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-04-12 18:54:50 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2020-04-15 08:59:41 +0000
commit7d9c004b9692ee681f4778a1062e40ee1211f7e5 (patch)
tree64f08a11027656b56f8bb94c858018142c944503
parentf5fde1eaaff08213a895f8051a625ef693222dad (diff)
Fix aggregateDependencyLinking() with XCode 9.4
Test failed because of the warning about macOS version mismatch which leaded to additional logging in CommandLineFrontend::handleProcessResultReport() Fixes: QBS-1456 Change-Id: I83dd0eeebd248c0a5ad38b65e29b96358f455404 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--tests/auto/blackbox/testdata-apple/aggregateDependencyLinking/aggregateDependencyLinking.qbs2
-rw-r--r--tests/auto/blackbox/tst_blackboxapple.cpp7
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/blackbox/testdata-apple/aggregateDependencyLinking/aggregateDependencyLinking.qbs b/tests/auto/blackbox/testdata-apple/aggregateDependencyLinking/aggregateDependencyLinking.qbs
index e7c8867bd..a65dcd023 100644
--- a/tests/auto/blackbox/testdata-apple/aggregateDependencyLinking/aggregateDependencyLinking.qbs
+++ b/tests/auto/blackbox/testdata-apple/aggregateDependencyLinking/aggregateDependencyLinking.qbs
@@ -14,6 +14,7 @@ Project {
// This will generate 2 multiplex configs and an aggregate.
qbs.architectures: ["x86", "x86_64"]
qbs.buildVariant: "debug"
+ cpp.minimumMacosVersion: "10.8"
}
CppApplication {
@@ -30,6 +31,7 @@ Project {
qbs.architecture: "x86_64"
qbs.buildVariant: "debug"
+ cpp.minimumMacosVersion: "10.8"
multiplexByQbsProperties: []
}
}
diff --git a/tests/auto/blackbox/tst_blackboxapple.cpp b/tests/auto/blackbox/tst_blackboxapple.cpp
index 21cecf9ad..ff7afd274 100644
--- a/tests/auto/blackbox/tst_blackboxapple.cpp
+++ b/tests/auto/blackbox/tst_blackboxapple.cpp
@@ -212,8 +212,11 @@ void TestBlackboxApple::appleMultiConfig()
void TestBlackboxApple::aggregateDependencyLinking()
{
- if (HostOsInfo::hostOsVersion() > qbs::Version(10, 13, 4))
- QSKIP("32-bit arch build is no longer supported on macOS versions higher than 10.13.4.");
+ // XCode 11 produces warning about deprecation of 32-bit apps, so skip the test
+ // for future XCode versions as well
+ const auto xcodeVersion = findXcodeVersion();
+ if (xcodeVersion >= qbs::Version(11))
+ QSKIP("32-bit arch build is no longer supported on macOS higher than 10.13.4.");
QDir::setCurrent(testDataDir + "/aggregateDependencyLinking");
QCOMPARE(runQbs(QStringList{"-p", "multi_arch_lib"}), 0);