diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-11-25 17:05:15 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2014-11-25 17:05:15 +0100 |
commit | ca61cbca6e07c440e0a99b19d4503634d31a31b0 (patch) | |
tree | 696959718b259888781b0edd658303e51777eb3f /tests/test-remote-node.c | |
parent | 5d60f64a894a0daccd0074a651b84067c6178663 (diff) |
Use GError-based error handling for communication
Diffstat (limited to 'tests/test-remote-node.c')
-rw-r--r-- | tests/test-remote-node.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-remote-node.c b/tests/test-remote-node.c index bc0116a..6b34663 100644 --- a/tests/test-remote-node.c +++ b/tests/test-remote-node.c @@ -29,9 +29,11 @@ typedef struct { static void setup (Fixture *fixture, gconstpointer data) { + GError *error = NULL; gchar *addr = g_strdup ("tcp://127.0.0.1:5555"); fixture->daemon = ufo_daemon_new (addr); - ufo_daemon_start (fixture->daemon); + ufo_daemon_start (fixture->daemon, &error); + g_assert_no_error (error); fixture->remote_node = (UfoRemoteNode *) ufo_remote_node_new (addr); } @@ -39,8 +41,10 @@ setup (Fixture *fixture, gconstpointer data) static void teardown (Fixture *fixture, gconstpointer data) { + GError *error = NULL; g_object_unref (fixture->remote_node); - ufo_daemon_stop (fixture->daemon); + ufo_daemon_stop (fixture->daemon, &error); + g_assert_no_error (error); g_object_unref (fixture->daemon); } |