[glib/glib-2-62: 7/10] gdbus-peer test: Improve diagnostics if g_rmdir fails
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-62: 7/10] gdbus-peer test: Improve diagnostics if g_rmdir fails
- Date: Thu, 31 Oct 2019 14:02:21 +0000 (UTC)
commit 4de7fc9bed959018b17d11308198c67463a5d56d
Author: Simon McVittie <smcv collabora com>
Date: Tue Oct 29 16:05:55 2019 +0000
gdbus-peer test: Improve diagnostics if g_rmdir fails
Helps: GNOME/glib#1921
Signed-off-by: Simon McVittie <smcv collabora com>
gio/tests/gdbus-peer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]