summaryrefslogtreecommitdiffstats
path: root/tests/auto/qbluetoothdevicediscoveryagent
diff options
context:
space:
mode:
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-11-05 12:50:47 +0100
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2014-11-05 16:23:27 +0100
commitc7a1622d1f76bc61f0d5bb524d3eb40501cab13b (patch)
tree9037e5405cb3bbfedf789434d22fb41807cbe206 /tests/auto/qbluetoothdevicediscoveryagent
parentc627c076b10ca88e2a1e1853eafc8ca6e609422d (diff)
Bluetooth - device discovery test on OS X
Print a debug message with an exact error code if device inquiry fails to start/fails - otherwise it can be converted into UnknownError, which does not help if tests are failing. -Make it even more verbose Change-Id: I2b3de396de071757022274563d4f60d3064a0228 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/qbluetoothdevicediscoveryagent')
-rw-r--r--tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp b/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
index dec85fba..bf273c79 100644
--- a/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
+++ b/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
@@ -36,6 +36,7 @@
#include <QDebug>
#include <QVariant>
#include <QList>
+#include <QLoggingCategory>
#include <qbluetoothaddress.h>
#include <qbluetoothdevicediscoveryagent.h>
@@ -90,6 +91,7 @@ private:
tst_QBluetoothDeviceDiscoveryAgent::tst_QBluetoothDeviceDiscoveryAgent()
{
+ QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
qRegisterMetaType<QBluetoothDeviceDiscoveryAgent::Error>("QBluetoothDeviceDiscoveryAgent::Error");
}