diff options
author | Simon McVittie <smcv@collabora.com> | 2019-10-29 16:05:55 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-10-29 16:35:04 +0000 |
commit | e1b7b1ac161343b1ca708c95c7618ec98fe7babe (patch) | |
tree | 3b721cdbbd34e41c5b53e6829e43513e070ffada /gio/tests/gdbus-peer.c | |
parent | 0e1549eb206c40d6d96afab318f426cfcca20008 (diff) | |
download | glib-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.c | 3 |
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); } } |