diff options
Diffstat (limited to 'tests/auto/qbluetoothserver')
-rw-r--r-- | tests/auto/qbluetoothserver/qbluetoothserver.pro | 2 | ||||
-rw-r--r-- | tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qbluetoothserver/qbluetoothserver.pro b/tests/auto/qbluetoothserver/qbluetoothserver.pro index f1baed01..7d7eb66b 100644 --- a/tests/auto/qbluetoothserver/qbluetoothserver.pro +++ b/tests/auto/qbluetoothserver/qbluetoothserver.pro @@ -2,7 +2,7 @@ SOURCES += tst_qbluetoothserver.cpp TARGET = tst_qbluetoothserver CONFIG += testcase -QT = core concurrent bluetooth testlib +QT = core concurrent bluetooth-private testlib osx:QT += widgets OTHER_FILES += \ diff --git a/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp b/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp index 2cb86fb4..acc498cc 100644 --- a/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp +++ b/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp @@ -30,6 +30,7 @@ #include <QDebug> +#include <private/qtbluetoothglobal_p.h> #include <qbluetoothserver.h> #include <qbluetoothsocket.h> #include <qbluetoothlocaldevice.h> @@ -217,7 +218,7 @@ void tst_QBluetoothServer::tst_receive() QVERIFY(result); -#ifndef Q_OS_WINRT +#if !QT_CONFIG(winrt_bt) QVERIFY(QBluetoothLocalDevice::allDevices().count()); #endif QCOMPARE(server.error(), QBluetoothServer::NoError); |