[tracker/gdbus: 19/21] functional-tests: Simplify error handling in class signal tests
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus: 19/21] functional-tests: Simplify error handling in class signal tests
- Date: Wed, 27 Oct 2010 17:04:46 +0000 (UTC)
commit e75d5c8d83ff70ba65599add0f2ab27496ba41fc
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
.../ipc/test-class-signal-performance.vala | 6 +-----
tests/functional-tests/ipc/test-class-signal.vala | 7 +------
2 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/tests/functional-tests/ipc/test-class-signal-performance.vala b/tests/functional-tests/ipc/test-class-signal-performance.vala
index 02e2155..1fd796e 100644
--- a/tests/functional-tests/ipc/test-class-signal-performance.vala
+++ b/tests/functional-tests/ipc/test-class-signal-performance.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/ipc/test-class-signal.vala b/tests/functional-tests/ipc/test-class-signal.vala
index 2a773a4..21c1d65 100644
--- a/tests/functional-tests/ipc/test-class-signal.vala
+++ b/tests/functional-tests/ipc/test-class-signal.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]