diff options
Diffstat (limited to 'tests/auto/qrfcommserver/tst_qrfcommserver.cpp')
-rw-r--r-- | tests/auto/qrfcommserver/tst_qrfcommserver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qrfcommserver/tst_qrfcommserver.cpp b/tests/auto/qrfcommserver/tst_qrfcommserver.cpp index e6052f65..e8816270 100644 --- a/tests/auto/qrfcommserver/tst_qrfcommserver.cpp +++ b/tests/auto/qrfcommserver/tst_qrfcommserver.cpp @@ -94,6 +94,9 @@ void tst_QRfcommServer::initTestCase() { qRegisterMetaType<QBluetooth::SecurityFlags>("QBluetooth::SecurityFlags"); + if (!QBluetoothLocalDevice::allDevices().count()) + QSKIP("Skipping test due to missing Bluetooth device"); + // turn on BT in case it is not on if (localDevice.hostMode() == QBluetoothLocalDevice::HostPoweredOff) { QSignalSpy hostModeSpy(&localDevice, SIGNAL(hostModeStateChanged(QBluetoothLocalDevice::HostMode))); |