diff options
author | Timur Pocheptsov <Timur.Pocheptsov@digia.com> | 2014-11-05 13:21:21 +0100 |
---|---|---|
committer | Timur Pocheptsov <Timur.Pocheptsov@digia.com> | 2014-11-05 13:29:23 +0100 |
commit | c627c076b10ca88e2a1e1853eafc8ca6e609422d (patch) | |
tree | 6d07f8e2a54bdbc6564fd2c74833a912b22ddfe1 /tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp | |
parent | 873546691bdd9f67988b8599941c2b52e0003dc4 (diff) |
Bluetooth - service discovery bugfix/test update on OS X
SDP inquiry either fails to start, or ends with an error. The failure at
start was not handled correctly (probably messing with failing tests as a result).
Print the original IOKit return code, set an error (thus emitting signal) +
also make a test case verbose to see these error codes.
Change-Id: Ica3cc5681b91f02a6b7f7e2681a653b5a9dbfd46
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp')
-rw-r--r-- | tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp b/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp index 83eb24a3..f9e7ef1a 100644 --- a/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp +++ b/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp @@ -34,6 +34,7 @@ #include <QtTest/QtTest> #include <QDebug> +#include <QLoggingCategory> #include <QVariant> #include <QList> @@ -80,6 +81,8 @@ private: tst_QBluetoothServiceDiscoveryAgent::tst_QBluetoothServiceDiscoveryAgent() { + QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + // start Bluetooth if not started QBluetoothLocalDevice *device = new QBluetoothLocalDevice(); localDeviceAvailable = device->isValid(); |