summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-12-13 23:08:05 +0200
committerJuha Vuolle <juha.vuolle@insta.fi>2021-12-15 11:53:21 +0200
commitd68134dc320f3f6fc25973aea9e813e4088e4545 (patch)
treec1cd1f8033d8e7226582c28be66bf46883751c5c /tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
parent52a03bcb3cad602175062456aca15ae9a16f6006 (diff)
Add Info.plists to autotests which require bluetooth usage key
This is needed to run the test cases on macOS 12. Also enable the tst_qlowenergycontroller test to run even if the sensor tag device is not found; the test contains functions that don't use it (the ones that do use it will skip). Task-number: QTBUG-98817 QTBUG-98816 Change-Id: I41369b7bfcea4de6c47428657881d9bab05a093e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp')
-rw-r--r--tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
index bc74c693..08590a31 100644
--- a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
+++ b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
@@ -176,7 +176,8 @@ void tst_QLowEnergyController::initTestCase()
}
}
- QVERIFY2(deviceFound, "Cannot find remote device.");
+ if (!deviceFound)
+ qWarning() << "Unable to find the TI sensor tag device, will skip most of the test";
// These are the services exported by the TI SensorTag
#ifndef Q_OS_MAC