[tracker/rss-enclosures] functional-test: Simplify error handling in query tests
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] functional-test: Simplify error handling in query tests
- Date: Wed, 24 Nov 2010 02:28:10 +0000 (UTC)
commit ef1718715802eb1ead5ac9cf10013eeb01d311c3
Author: Jürg Billeter <j bitron ch>
Date: Mon Oct 25 14:41:24 2010 +0200
functional-test: Simplify error handling in query tests
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 1867fed..d8a198e 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;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]