summaryrefslogtreecommitdiffstats
path: root/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp')
-rw-r--r--tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp b/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp
index 57b92272..2afcb914 100644
--- a/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp
+++ b/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp
@@ -125,6 +125,9 @@ tst_QBluetoothSocket::~tst_QBluetoothSocket()
void tst_QBluetoothSocket::initTestCase()
{
// start Bluetooth if not started
+ if (!QBluetoothLocalDevice::allDevices().count())
+ QSKIP("Skipping test due to missing Bluetooth device");
+
QBluetoothLocalDevice *device = new QBluetoothLocalDevice();
device->powerOn();
delete device;