diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/all-errors-documented.py | 2 | ||||
-rw-r--r-- | tests/dbus/connection-error.c | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/tests/all-errors-documented.py b/tests/all-errors-documented.py index 1a83d81d9..ad7d52d11 100755 --- a/tests/all-errors-documented.py +++ b/tests/all-errors-documented.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/python # Check if all the errors have been added to # docs/reference/telepathy-glib-sections.txt diff --git a/tests/dbus/connection-error.c b/tests/dbus/connection-error.c index 146eca1ca..bf8ecaf8a 100644 --- a/tests/dbus/connection-error.c +++ b/tests/dbus/connection-error.c @@ -214,7 +214,11 @@ test_registered_error (Test *test, "com.example.DomainSpecificError"); g_assert (asv != NULL); - g_clear_error (&error); + g_assert_cmpstr (g_quark_to_string (error->domain), ==, + g_quark_to_string (example_com_error_quark ())); + g_assert_cmpuint (error->code, ==, DOMAIN_SPECIFIC_ERROR); + g_error_free (error); + error = NULL; } static void @@ -366,7 +370,11 @@ test_detailed_error (Test *test, g_assert (ok); g_assert_cmpint (bees, ==, 2342); - g_clear_error (&error); + g_assert_cmpstr (g_quark_to_string (error->domain), ==, + g_quark_to_string (example_com_error_quark ())); + g_assert_cmpuint (error->code, ==, DOMAIN_SPECIFIC_ERROR); + g_error_free (error); + error = NULL; } int |