[libgdata/657539-tasks-tests: 5/19] tests: Tighten error checking on UHM trace setup



commit af3498df1429182b85bec3e5cbfaeae8acebfe35
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Aug 30 23:30:11 2014 +0100

    tests: Tighten error checking on UHM trace setup
    
    If the trace file didn’t exist, we weren’t catching the error, and
    things were failing further down the line.

 gdata/tests/common.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdata/tests/common.c b/gdata/tests/common.c
index abbede3..1193a7c 100644
--- a/gdata/tests/common.c
+++ b/gdata/tests/common.c
@@ -930,7 +930,10 @@ gdata_test_set_https_port (UhmServer *server)
 void
 gdata_test_mock_server_start_trace (UhmServer *server, const gchar *trace_filename)
 {
-       uhm_server_start_trace (server, trace_filename, NULL);
+       GError *child_error = NULL;
+
+       uhm_server_start_trace (server, trace_filename, &child_error);
+       g_assert_no_error (child_error);
        gdata_test_set_https_port (server);
 }
 


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