[tracker/gdbus: 20/22] functional-tests: Simplify error handling in class signal tests



commit 5864b33aca2228b9abec6864f6e82fb6553f3b98
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 25 14:40:19 2010 +0200

    functional-tests: Simplify error handling in class signal tests

 .../class-signal-performance-test.vala             |    6 +-----
 tests/functional-tests/class-signal-test.vala      |    7 +------
 2 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/tests/functional-tests/class-signal-performance-test.vala b/tests/functional-tests/class-signal-performance-test.vala
index 02e2155..1fd796e 100644
--- a/tests/functional-tests/class-signal-performance-test.vala
+++ b/tests/functional-tests/class-signal-performance-test.vala
@@ -97,11 +97,7 @@ public class TestApp {
 			resources_object.graph_updated.connect (on_graph_updated_received);
 			t = new GLib.Timer ();
 			
-		} catch (Sparql.Error e) {
-			warning ("Could not connect to D-Bus service: %s", e.message);
-			initialized = false;
-			return;
-		} catch (DBus.Error e) {
+		} catch (GLib.Error e) {
 			warning ("Could not connect to D-Bus service: %s", e.message);
 			initialized = false;
 			return;
diff --git a/tests/functional-tests/class-signal-test.vala b/tests/functional-tests/class-signal-test.vala
index 2a773a4..21c1d65 100644
--- a/tests/functional-tests/class-signal-test.vala
+++ b/tests/functional-tests/class-signal-test.vala
@@ -65,12 +65,7 @@ public class TestApp {
 
 			resources_object.graph_updated.connect (on_graph_updated_received);
 
-		} catch (Sparql.Error e) {
-			warning ("Could not connect to D-Bus service: %s", e.message);
-			initialized = false;
-			res = -1;
-			return;
-		} catch (DBus.Error e) {
+		} catch (GLib.Error e) {
 			warning ("Could not connect to D-Bus service: %s", e.message);
 			initialized = false;
 			res = -1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]