[tracker/direct-access: 36/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: 36/40] tests/functional-tests: Refactoring the query test
- Date: Wed, 11 Aug 2010 16:06:59 +0000 (UTC)
commit 29fc1b65dbf1256cad40692713f5486b5b3d3036
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]