summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2020-10-31 12:26:01 +0000
committerSimon McVittie <smcv@collabora.com>2020-10-31 12:26:01 +0000
commitf53aaeac9f92d840255fec39c78bea1855755842 (patch)
treebaeaebd0ce205b917806193f5ac55b738ab6c718
parent782c1b424e50e7712fa5cddd5889f31ca4b6e87d (diff)
downloadglib-wip/smcv/assert-no-errno.tar.gz
gio/tests/gsettings: Assert that temporary directory ends up emptywip/smcv/assert-no-errno
If there are stray files left over, g_rmdir() will fail with ENOTEMPTY. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--gio/tests/gsettings.c2
1 files changed, 1 insertions, 1 deletions
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);
}