[tracker/direct-access: 34/39] tests/functional-tests: Refactoring the query test



commit 2e2b1d68435b542356222d540768fe24c48ab813
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]