aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-02-03 14:35:13 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-02-03 14:29:54 +0000
commit633b7b74aad54e3102f06ca5110678596e2ae9b3 (patch)
treebad213fca05cd164d6051c6fbc84f66d54bef67f /tests
parent3fad0a13ca42652fe8b720af739bf5dfcae0ee3e (diff)
Fix separateDebugInfo() autotest on OS X.
qbs.targetOS is not necessarily set in the profile. Change-Id: I8344bdf3fe5dc75bc23946447b85c20dbaccb5e5 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index ff218b71f..8bfb3ab6f 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -552,7 +552,7 @@ void TestBlackbox::separateDebugInfo()
Profile buildProfile(profileName(), &settings);
QStringList toolchain = buildProfile.value("qbs.toolchain").toStringList();
QStringList targetOS = buildProfile.value("qbs.targetOS").toStringList();
- if (targetOS.contains("darwin")) {
+ if (targetOS.contains("darwin") || (targetOS.isEmpty() && HostOsInfo::isOsxHost())) {
QVERIFY(QFile::exists(relativeProductBuildDir("app1") + "/app1.app.dSYM"));
QVERIFY(!QFile::exists(relativeProductBuildDir("app2") + "/app2.app.dSYM"));
QVERIFY(QFile::exists(relativeProductBuildDir("foo1") + "/foo1.framework.dSYM"));