summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
index 6475b8c4..7b02dbcd 100644
--- a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
+++ b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
@@ -120,9 +120,13 @@ tst_QLowEnergyController::~tst_QLowEnergyController()
void tst_QLowEnergyController::initTestCase()
{
-#if !defined(Q_OS_MAC) && !defined(Q_OS_WINRT)
+#if !defined(Q_OS_MAC)
if (remoteDevice.isNull()
+#ifndef Q_OS_WINRT
|| QBluetoothLocalDevice::allDevices().isEmpty()) {
+#else
+ ) {
+#endif
qWarning("No remote device or local adapter found.");
return;
}