diff options
author | Jürg Billeter <j@bitron.ch> | 2010-10-25 14:41:24 +0200 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2010-11-10 15:09:56 +0000 |
commit | c7c71131ed1582fab003b0aa308768968a83d2d8 (patch) | |
tree | fd92c22c23f01eead1c0337f3373ab97008a535d | |
parent | 23fe3a8052c310017447395ca730d048065d1dbc (diff) | |
download | tracker-c7c71131ed1582fab003b0aa308768968a83d2d8.tar.gz |
functional-test: Simplify error handling in query tests
-rw-r--r-- | tests/functional-tests/ipc/test-bus-query.vala | 9 |
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; + } } |