gio/tests/gsettings: Use g_assert_no_errno()

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2020-10-31 12:24:22 +00:00
parent 3468369625
commit 3f9f7da0f1

View File

@ -39,7 +39,7 @@ static void
teardown (Fixture *fixture,
gconstpointer user_data)
{
g_assert_cmpint (g_rmdir (fixture->tmp_dir), ==, 0);
g_assert_no_errno (g_rmdir (fixture->tmp_dir));
g_clear_pointer (&fixture->tmp_dir, g_free);
}
@ -1860,7 +1860,7 @@ test_keyfile (Fixture *fixture,
/* Clean up the temporary directory. */
g_chmod (keyfile_path, 0777);
g_assert_cmpint (g_remove (store_path), ==, 0);
g_assert_no_errno (g_remove (store_path));
g_rmdir (keyfile_path);
g_free (store_path);
g_free (keyfile_path);