diff options
Diffstat (limited to 'tests/dbus')
-rw-r--r-- | tests/dbus/connection-error.c | 12 |
1 files changed, 10 insertions, 2 deletions
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 |