[tracker/direct-access: 35/40] tests/functional-tests: Refactoring the query test
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/direct-access: 35/40] tests/functional-tests: Refactoring the query test
- Date: Fri, 13 Aug 2010 11:48:15 +0000 (UTC)
commit 2400b573816a68220c79120c51946c5ac6664064
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Jul 22 12:56:01 2010 +0200
tests/functional-tests: Refactoring the query test
tests/functional-tests/direct-query-test.vala | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/direct-query-test.vala b/tests/functional-tests/direct-query-test.vala
index 231d047..27ea709 100644
--- a/tests/functional-tests/direct-query-test.vala
+++ b/tests/functional-tests/direct-query-test.vala
@@ -4,7 +4,14 @@ using Tracker.Sparql;
int
main( string[] args )
{
- TestApp app = new TestApp (new Tracker.Direct.Connection ());
+ int res = -1;
- return app.run ();
+ try {
+ TestApp app = new TestApp (new Tracker.Direct.Connection ());
+ res = app.run ();
+ } catch (Sparql.Error e) {
+ warning ("Couldn't perform test: %s", e.message);
+ }
+
+ return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]