summaryrefslogtreecommitdiffstats
path: root/tests/auto/qbluetoothtransfermanager
diff options
context:
space:
mode:
authoralex <alex.blasche@nokia.com>2012-06-25 12:49:03 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-27 02:36:18 +0200
commit2cf4fc7c63622326780646375cf4c7c2fd014345 (patch)
tree2592a66068d5791f538358f0e68173afd4cb7373 /tests/auto/qbluetoothtransfermanager
parentf60cccfc4eef73ecc8e79c4b0826e7dcaf212c2b (diff)
Fix various Bluetooth tests such that they run via CI
The CI system doesn't have any Bluetooth devices attached to it. Task-number: QTBUG-22017 Change-Id: I136d8f1295f3e770eb8c66557343ede7fa438a06 Reviewed-by: Michael Zanetti <michael.zanetti@nokia.com> Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
Diffstat (limited to 'tests/auto/qbluetoothtransfermanager')
-rw-r--r--tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp3
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();