aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackboxandroid.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-11-16 10:57:52 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2018-11-16 11:46:49 +0000
commit1ab6dee934b4cdc27fe14271a7ecbc0fc35b04d5 (patch)
tree5d42ca6fb17d55f9ddd420f314e544e3e6eff728 /tests/auto/blackbox/tst_blackboxandroid.cpp
parent126d3ecc9dda002304dd3143651c0b799118d18f (diff)
Fix android autotest for the case of no Qt profile being present
Change-Id: If09515d070802cc6d34101c5662962436482bd55 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/tst_blackboxandroid.cpp')
-rw-r--r--tests/auto/blackbox/tst_blackboxandroid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackboxandroid.cpp b/tests/auto/blackbox/tst_blackboxandroid.cpp
index bea4ee595..bf47c241c 100644
--- a/tests/auto/blackbox/tst_blackboxandroid.cpp
+++ b/tests/auto/blackbox/tst_blackboxandroid.cpp
@@ -83,6 +83,8 @@ void TestBlackboxAndroid::android()
const SettingsPtr s = settings();
Profile p(theProfileName(projectDir == "qml-app"), s.get());
+ if (!p.exists())
+ p = Profile("none", s.get());
int status;
const auto androidPaths = findAndroid(&status, p.name());
QCOMPARE(status, 0);