[glib/wip/smcv/assert-no-errno: 5/5] gio/tests/gsettings: Assert that temporary directory ends up empty
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/smcv/assert-no-errno: 5/5] gio/tests/gsettings: Assert that temporary directory ends up empty
- Date: Sat, 31 Oct 2020 12:34:09 +0000 (UTC)
commit f53aaeac9f92d840255fec39c78bea1855755842
Author: Simon McVittie <smcv collabora com>
Date: Sat Oct 31 12:26:01 2020 +0000
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 <smcv collabora com>
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]