From f53aaeac9f92d840255fec39c78bea1855755842 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 31 Oct 2020 12:26:01 +0000 Subject: [PATCH] gio/tests/gsettings: Assert that temporary directory ends up empty If there are stray files left over, g_rmdir() will fail with ENOTEMPTY. Signed-off-by: Simon McVittie --- gio/tests/gsettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c index d842794ec..2f81ae6c3 100644 --- a/gio/tests/gsettings.c +++ b/gio/tests/gsettings.c @@ -1861,7 +1861,7 @@ test_keyfile (Fixture *fixture, /* Clean up the temporary directory. */ g_assert_no_errno (g_chmod (keyfile_path, 0777)); g_assert_no_errno (g_remove (store_path)); - g_rmdir (keyfile_path); + g_assert_no_errno (g_rmdir (keyfile_path)); g_free (store_path); g_free (keyfile_path); }