summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander Akulich <akulichalexander@gmail.com>2021-02-04 01:55:03 +0300
committerAlexander Akulich <akulichalexander@gmail.com>2021-02-04 01:56:23 +0300
commit07edce9404cebf9a7180d7b450f0b50a5255cae2 (patch)
treec2ced05b6dcb3cd5b5b6f328e1fdad497e8fb855 /tests
parent9c6c6fb5203d8cb73064a02cc6b147aa91908952 (diff)
parent8300e7f45ca0696f8e3a1d585155136c263c38e4 (diff)
downloadtelepathy-glib-master.tar.gz
Merge branch 'telepathy-glib-0.24'HEADmaster
Diffstat (limited to 'tests')
-rwxr-xr-xtests/all-errors-documented.py2
-rw-r--r--tests/dbus/connection-error.c12
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