mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-23 16:10:03 +01:00
gdbus-peer test: Improve diagnostics if g_rmdir fails
Helps: GNOME/glib#1921 Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
4c8d7c24c1
commit
4de7fc9bed
@ -313,7 +313,8 @@ teardown_test_address (void)
|
|||||||
/* Ensuring the rmdir succeeds also ensures any sockets created on the
|
/* Ensuring the rmdir succeeds also ensures any sockets created on the
|
||||||
* filesystem are also deleted.
|
* 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);
|
g_clear_pointer (&tmpdir, g_free);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user