summaryrefslogtreecommitdiff
path: root/gio/tests/gdbus-peer.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2019-10-29 16:05:55 +0000
committerSimon McVittie <smcv@collabora.com>2019-10-29 16:35:04 +0000
commite1b7b1ac161343b1ca708c95c7618ec98fe7babe (patch)
tree3b721cdbbd34e41c5b53e6829e43513e070ffada /gio/tests/gdbus-peer.c
parent0e1549eb206c40d6d96afab318f426cfcca20008 (diff)
downloadglib-e1b7b1ac161343b1ca708c95c7618ec98fe7babe.tar.gz
gdbus-peer test: Improve diagnostics if g_rmdir fails
Helps: GNOME/glib#1921 Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'gio/tests/gdbus-peer.c')
-rw-r--r--gio/tests/gdbus-peer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/tests/gdbus-peer.c b/gio/tests/gdbus-peer.c
index dc4176cf2..c51166ae7 100644
--- a/gio/tests/gdbus-peer.c
+++ b/gio/tests/gdbus-peer.c
@@ -313,7 +313,8 @@ teardown_test_address (void)
/* Ensuring the rmdir succeeds also ensures any sockets created on the
* filesystem are also deleted.
*/
- g_assert_cmpint (g_rmdir (tmpdir), ==, 0);
+ g_assert_cmpstr (g_rmdir (tmpdir) == 0 ? "OK" : g_strerror (errno),
+ ==, "OK");
g_clear_pointer (&tmpdir, g_free);
}
}