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:
Simon McVittie 2020-10-31 12:26:01 +00:00
parent 782c1b424e
commit f53aaeac9f

View File

@ -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);
}