summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-10-25 14:41:24 +0200
committerMartyn Russell <martyn@lanedo.com>2010-11-10 15:09:56 +0000
commitc7c71131ed1582fab003b0aa308768968a83d2d8 (patch)
treefd92c22c23f01eead1c0337f3373ab97008a535d
parent23fe3a8052c310017447395ca730d048065d1dbc (diff)
downloadtracker-c7c71131ed1582fab003b0aa308768968a83d2d8.tar.gz
functional-test: Simplify error handling in query tests
-rw-r--r--tests/functional-tests/ipc/test-bus-query.vala9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/functional-tests/ipc/test-bus-query.vala b/tests/functional-tests/ipc/test-bus-query.vala
index 1867fed46..d8a198e57 100644
--- a/tests/functional-tests/ipc/test-bus-query.vala
+++ b/tests/functional-tests/ipc/test-bus-query.vala
@@ -4,7 +4,12 @@ using Tracker.Sparql;
int
main( string[] args )
{
- TestApp app = new TestApp (new Tracker.Bus.Connection ());
+ try {
+ TestApp app = new TestApp (new Tracker.Bus.Connection ());
- return app.run ();
+ return app.run ();
+ } catch (GLib.Error e) {
+ warning ("Couldn't perform test: %s", e.message);
+ return 1;
+ }
}