summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-09-30 17:39:57 +0200
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-10-02 07:29:47 +0200
commitfc3d2fbbe53731dc336133b00fb0128506937c16 (patch)
tree92c7e5476fc0b5c1a27e24d9df77525185c18026
parent2917e641defac2302e8204bb0570a5150b9923d4 (diff)
QBluetoothLocalDevice - enable auto test on OS X.
The patch enables this test, but has to skip several test like powerOn/Off and setHostMode - which is noop on OS X. Change-Id: I6ef5e76294e61808668e46ad53ceaadfd855c9c3 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r--tests/auto/qbluetoothlocaldevice/qbluetoothlocaldevice.pro4
-rw-r--r--tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp12
2 files changed, 13 insertions, 3 deletions
diff --git a/tests/auto/qbluetoothlocaldevice/qbluetoothlocaldevice.pro b/tests/auto/qbluetoothlocaldevice/qbluetoothlocaldevice.pro
index a31b942d..7322cd70 100644
--- a/tests/auto/qbluetoothlocaldevice/qbluetoothlocaldevice.pro
+++ b/tests/auto/qbluetoothlocaldevice/qbluetoothlocaldevice.pro
@@ -3,8 +3,6 @@ TARGET=tst_qbluetoothlocaldevice
CONFIG += testcase
QT = core concurrent bluetooth testlib
+osx:QT += widgets
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
-
-osx:CONFIG += insignificant_test
-
diff --git a/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp b/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
index 30e009dd..65aff3fb 100644
--- a/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
+++ b/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
@@ -111,6 +111,10 @@ void tst_QBluetoothLocalDevice::initTestCase()
void tst_QBluetoothLocalDevice::tst_powerOn()
{
+#ifdef Q_OS_OSX
+ QSKIP("Not possible on OS X");
+#endif
+
QBluetoothLocalDevice localDevice;
QSignalSpy hostModeSpy(&localDevice, SIGNAL(hostModeStateChanged(QBluetoothLocalDevice::HostMode)));
@@ -132,6 +136,10 @@ void tst_QBluetoothLocalDevice::tst_powerOn()
void tst_QBluetoothLocalDevice::tst_powerOff()
{
+#ifdef Q_OS_OSX
+ QSKIP("Not possible on OS X");
+#endif
+
if (!QBluetoothLocalDevice::allDevices().count())
QSKIP("Skipping test due to missing Bluetooth device");
@@ -176,6 +184,10 @@ void tst_QBluetoothLocalDevice::tst_hostModes_data()
void tst_QBluetoothLocalDevice::tst_hostModes()
{
+#ifdef Q_OS_OSX
+ QSKIP("Not possible on OS X");
+#endif
+
QFETCH(QBluetoothLocalDevice::HostMode, hostModeExpected);
QFETCH(bool, expectSignal);