diff options
author | Simon McVittie <smcv@collabora.com> | 2020-10-31 12:26:01 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2020-10-31 12:26:01 +0000 |
commit | f53aaeac9f92d840255fec39c78bea1855755842 (patch) | |
tree | baeaebd0ce205b917806193f5ac55b738ab6c718 | |
parent | 782c1b424e50e7712fa5cddd5889f31ca4b6e87d (diff) | |
download | glib-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.c | 2 |
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); } |