diff options
Diffstat (limited to 'tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp')
-rw-r--r-- | tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp b/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp index 8e223d9e..210c5015 100644 --- a/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp +++ b/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp @@ -111,6 +111,9 @@ tst_QBluetoothTransferManager::~tst_QBluetoothTransferManager() void tst_QBluetoothTransferManager::initTestCase() { + if (!QBluetoothLocalDevice::allDevices().count()) + QSKIP("Skipping test due to missing Bluetooth device"); + // start Bluetooth if not started QBluetoothLocalDevice *device = new QBluetoothLocalDevice(); device->powerOn(); |