diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-01-03 14:38:11 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-03 23:45:06 +0100 |
commit | 91371ffd3d00e10635f58d1e9efe8c1b3f467537 (patch) | |
tree | 50a6b7f885721b6db2c0a8fcbb2a547e216102fb /tests/auto/qbluetoothservicediscoveryagent | |
parent | 3336383132b1aafeb74585d203e98e85811af55e (diff) |
QtConnectivity: Fix test crashes/asserts/hangs.
- Fix crash caused by uninitialized d-ptr in local device
default implementation (Windows).
- Fix crash caused by uninitialized d-ptr in local device
bluez implementation (Linux) if connection fails.
- Verify local device validity before d-ptr is accessed in
test
- Fix crash in QNdefNfcUriRecord::uri() in case
abbreviations[0] (==0) is accessed.
- Terminate wait loops
- Check signal spy before accessing first element.
- Fix compiler warnings.
Change-Id: I92d54b4dfcc05e8befb49f2bd72b60251641aa48
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'tests/auto/qbluetoothservicediscoveryagent')
-rw-r--r-- | tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp b/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp index cc2f0822..cc89390d 100644 --- a/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp +++ b/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp @@ -214,7 +214,7 @@ static void dumpAttributeVariant(const QVariant &var, const QString indent) } } -static void dumpServiceInfoAttributes(const QBluetoothServiceInfo &info) +static inline void dumpServiceInfoAttributes(const QBluetoothServiceInfo &info) { foreach (quint16 id, info.attributes()) { dumpAttributeVariant(info.attribute(id), QString("\t")); |