From a027130eae19b653bbe195b5755a3b42b1b68b67 Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Thu, 3 Aug 2017 14:32:41 +0200 Subject: winrt: Fix tst_QBluetoothServer We cannot obtain information about local bluetooth devices on winrt. Change-Id: I7805b68bff38a2a2d049619742880db5bd8d3cef Reviewed-by: Alex Blasche --- tests/auto/qbluetoothserver/tst_qbluetoothserver.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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)); -- cgit v1.2.3