summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2019-02-08 09:51:19 +0100
committerAlex Blasche <alexander.blasche@qt.io>2019-02-08 13:22:47 +0000
commit1606ccb76ba72990df652fbd7f01d709ae20b63c (patch)
tree42f3ed40bcf8bd001501d89eb31f5fde99feb3b4 /tests
parent862c766f0896314bf850c5573bb39788f211c1e1 (diff)
Fix unit test failure on Android
It fixes the following failure FAIL! : tst_QBluetoothServiceDiscoveryAgent::tst_invalidBtAddress() Compared values are not the same Actual (discoveryAgent->error()) : InvalidBluetoothAdapterError Expected (QBluetoothServiceDiscoveryAgent::NoError): NoError This behavior was caused by the fact that the InvalidBluetoothAdapterError was already triggered in the QBluetoothServiceDiscoveryAgent ctor whereas convention for this class states that the error is set when QBluetoothServiceDiscoveryAgent::start() is called. The fix detects whether the requested local adapter address matches the existing local adapter address. If there is no match Invalid adapter error is thrown. Task-number: QTBUG-73571 Change-Id: I3216e1609820a66893768b33f0fc695fbad6966a Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions