summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-06-13 16:28:57 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-06-18 13:04:43 +0200
commit6014943db4b72962731a90c09a1b476af8385c29 (patch)
treec8cfb326ac900396cd29b45f1653fe3a849f81bc /tests
parent19714b30f9dff135f4b831895ce2ac518554e2c6 (diff)
Shift local Bt adapter validation out of constructor
It can emit error signals which cannot be received while still running the ctor. Add documentation on how this affects the localAddress() function. Change-Id: I144ea7277470f7db498b49952a9525d29c43183a Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
index e0328c56..5792d6d2 100644
--- a/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
+++ b/tests/auto/qlowenergycontroller/tst_qlowenergycontroller.cpp
@@ -842,9 +842,6 @@ void tst_QLowEnergyController::tst_defaultBehavior()
QCOMPARE(controlDefaultAdapter.remoteAddress(), randomAddress);
QCOMPARE(controlDefaultAdapter.state(), QLowEnergyControllerNew::UnconnectedState);
if (foundAddresses.isEmpty()) {
- QCOMPARE(controlDefaultAdapter.error(),
- QLowEnergyControllerNew::InvalidBluetoothAdapterError);
- QVERIFY(!controlDefaultAdapter.errorString().isEmpty());
QVERIFY(controlDefaultAdapter.localAddress().isNull());
} else {
QCOMPARE(controlDefaultAdapter.error(), QLowEnergyControllerNew::NoError);