diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-03-06 15:24:57 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-03-07 09:52:25 +0000 |
commit | 31ff679359172dfa068014ab0537418f5b852eac (patch) | |
tree | 6cc22138efc1e565ca1f415505b1fb94c7548e80 /tests/auto/qgeoareamonitor | |
parent | 181511ef5c8a86c09a1bd953bdfd5fa603515148 (diff) | |
download | qtlocation-31ff679359172dfa068014ab0537418f5b852eac.tar.gz |
Don't try to set library paths if !QT_CONFIG(library)
Change-Id: I1774d2b4c637f5057691f43275e10f19b986c722
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/qgeoareamonitor')
-rw-r--r-- | tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp b/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp index 55261984..75c1eecb 100644 --- a/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp +++ b/tests/auto/qgeoareamonitor/tst_qgeoareamonitor.cpp @@ -77,6 +77,7 @@ class tst_QGeoAreaMonitorSource : public QObject private slots: void initTestCase() { +#if QT_CONFIG(library) /* * Set custom path since CI doesn't install plugins */ @@ -87,6 +88,7 @@ private slots: QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() + QStringLiteral("/../../../plugins")); #endif +#endif qRegisterMetaType<QGeoPositionInfo>(); qRegisterMetaType<QGeoAreaMonitorInfo>(); } |