[geocode-glib] test-gcglib: Add a missing error assertion



commit 53b29e747ecbab77088d188de0432f8d3ae4b231
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Oct 13 11:55:52 2016 +0100

    test-gcglib: Add a missing error assertion
    
    This doesn’t change how the tests behave at the moment, but might catch
    more errors in future.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756311

 geocode-glib/test-gcglib.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/test-gcglib.c b/geocode-glib/test-gcglib.c
index e6f4165..16a72c5 100644
--- a/geocode-glib/test-gcglib.c
+++ b/geocode-glib/test-gcglib.c
@@ -572,6 +572,7 @@ test_search_json (void)
                            TEST_SRCDIR "/nominatim-rio.json", error->message);
        }
        list = _geocode_parse_search_json (contents, &error);
+       g_assert_no_error (error);
 
        g_assert (list != NULL);
        g_assert_cmpint (g_list_length (list), ==, 10);


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