mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
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>
This commit is contained in:
parent
782c1b424e
commit
f53aaeac9f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user