summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@digia.com>2014-07-07 09:54:11 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-07-07 10:16:06 +0200
commit1b16171c0c1d74610fe667533c3e4ca38fc77dd8 (patch)
treeffd607ced7d3d1fb7b8961a376828f01b71ade52
parenteecad1420a5c2ab7f39cc9ea70962df944eaf2ec (diff)
downloadqtlocation-1b16171c0c1d74610fe667533c3e4ca38fc77dd8.tar.gz
Compile fix for platforms without process support
Change-Id: Iaf15ecd49524a787198d091399454c3daeeeb51b Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r--tests/auto/nokia_services/places_semiauto/tst_places.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/nokia_services/places_semiauto/tst_places.cpp b/tests/auto/nokia_services/places_semiauto/tst_places.cpp
index b96e7f3b..d89db87e 100644
--- a/tests/auto/nokia_services/places_semiauto/tst_places.cpp
+++ b/tests/auto/nokia_services/places_semiauto/tst_places.cpp
@@ -118,6 +118,7 @@ void tst_QPlaceManagerNokia::initTestCase()
QVariantMap params;
QStringList providers = QGeoServiceProvider::availableServiceProviders();
QVERIFY(providers.contains("nokia"));
+#ifndef QT_NO_PROCESS
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
if (!(env.contains(AppIdEnv) && env.contains(TokenEnv)))
@@ -128,7 +129,9 @@ void tst_QPlaceManagerNokia::initTestCase()
if (env.contains(ProxyEnv))
params.insert(QStringLiteral("proxy"), env.value(ProxyEnv));
-
+#else
+ QSKIP("Cannot parse process environment, NOKIA_APP_ID and NOKIA_TOKEN not set");
+#endif
provider = new QGeoServiceProvider("nokia", params);
placeManager = provider->placeManager();
QVERIFY(placeManager);