mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-17 23:47:52 +02: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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user