summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp b/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp
index 0ec6cd6a..d8df8e9a 100644
--- a/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp
+++ b/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp
@@ -232,12 +232,15 @@ void tst_QBluetoothServiceInfo::tst_assignment()
copyInfo = serviceInfo;
QVERIFY(!copyInfo.isRegistered());
- QEXPECT_FAIL("assignment_data", "QTBUG-25452", Abort);
- QVERIFY(copyInfo.registerService());
- QVERIFY(copyInfo.isRegistered());
-
- QVERIFY(copyInfo.unregisterService());
- QVERIFY(!copyInfo.isRegistered());
+ if (!QBluetoothLocalDevice::allDevices().count()) {
+ QSKIP("Skipping test due to missing Bluetooth device");
+ } else {
+ QVERIFY(copyInfo.registerService());
+ QVERIFY(copyInfo.isRegistered());
+
+ QVERIFY(copyInfo.unregisterService());
+ QVERIFY(!copyInfo.isRegistered());
+ }
}
}