aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarja Hassinen <ext-marja.2.hassinen@nokia.com>2009-10-26 13:49:12 +0200
committerMarja Hassinen <ext-marja.2.hassinen@nokia.com>2009-10-26 13:49:12 +0200
commit214877e56cc055b856a68f277008517743eff4c4 (patch)
treee84d52b04f21d79b2a8607d2b9f43d09e186bba4
parenta058fbf9ecdd7e3784815360b778c1651005e8c7 (diff)
libcontextprovider, protocol change: Updating customer tests.
-rw-r--r--libcontextprovider/customer-tests/client/commandwatcher.cpp2
-rw-r--r--libcontextprovider/customer-tests/subscription/subscriptiontests.cpp7
2 files changed, 5 insertions, 4 deletions
diff --git a/libcontextprovider/customer-tests/client/commandwatcher.cpp b/libcontextprovider/customer-tests/client/commandwatcher.cpp
index ae656661..b5bb05b9 100644
--- a/libcontextprovider/customer-tests/client/commandwatcher.cpp
+++ b/libcontextprovider/customer-tests/client/commandwatcher.cpp
@@ -185,7 +185,7 @@ void CommandWatcher::callSubscribe(const QString& name, const QString& key)
pc.waitForFinished();
QDBusPendingReply<QList<QVariant>, quint64> reply = pc;
if (reply.isError()) {
- out << "Subscribe error: " << reply.reply().errorName() << reply.reply().errorMessage() << endl;
+ out << "Subscribe error: " << reply.reply().errorName() << endl;
return;
}
out << "Subscribe returned: " << describeValue(reply.argumentAt<0>(), reply.argumentAt<1>()) << endl;
diff --git a/libcontextprovider/customer-tests/subscription/subscriptiontests.cpp b/libcontextprovider/customer-tests/subscription/subscriptiontests.cpp
index 6a3e4f0e..3f0f91c7 100644
--- a/libcontextprovider/customer-tests/subscription/subscriptiontests.cpp
+++ b/libcontextprovider/customer-tests/subscription/subscriptiontests.cpp
@@ -86,14 +86,15 @@ void SubscriptionTests::cleanup()
}
delete client; client = NULL;
- delete service1; service1 = NULL;
- delete service2; service2 = NULL;
-
+ // Note: we need to delete the properties before deleting the service
delete test_int; test_int = NULL;
delete test_double; test_double = NULL;
delete test_bool; test_bool = NULL;
delete test_string; test_string = NULL;
+ delete service1; service1 = NULL;
+ delete service2; service2 = NULL;
+
// ServiceBackedns are deleted in a deferred way, thus we need to
// get them deleted
QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);