diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2017-08-03 14:32:41 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2017-08-04 07:58:14 +0000 |
commit | a027130eae19b653bbe195b5755a3b42b1b68b67 (patch) | |
tree | 8c6ff9f69c54fe113fe86ecd5fff884df26bcd3b | |
parent | ff9eb8b160b9bc0db3372ec95d5b5fc3174d0326 (diff) | |
download | qtconnectivity-a027130eae19b653bbe195b5755a3b42b1b68b67.tar.gz |
winrt: Fix tst_QBluetoothServer
We cannot obtain information about local bluetooth devices
on winrt.
Change-Id: I7805b68bff38a2a2d049619742880db5bd8d3cef
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp b/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp index b6fd9211..2cb86fb4 100644 --- a/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp +++ b/tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp @@ -217,7 +217,9 @@ void tst_QBluetoothServer::tst_receive() QVERIFY(result); +#ifndef Q_OS_WINRT QVERIFY(QBluetoothLocalDevice::allDevices().count()); +#endif QCOMPARE(server.error(), QBluetoothServer::NoError); QCOMPARE(server.serverAddress(), address); QCOMPARE(server.serverPort(), quint16(20)); |