gio/tests/gsettings: Assert that g_chmod succeeds

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

View File

@ -1844,7 +1844,7 @@ test_keyfile (Fixture *fixture,
g_signal_connect (settings, "writable-changed::greeting",
G_CALLBACK (key_changed_cb), &called);
g_chmod (keyfile_path, 0500);
g_assert_no_errno (g_chmod (keyfile_path, 0500));
while (!called)
g_main_context_iteration (NULL, FALSE);
g_signal_handlers_disconnect_by_func (settings, key_changed_cb, &called);
@ -1859,7 +1859,7 @@ test_keyfile (Fixture *fixture,
g_object_unref (settings);
/* Clean up the temporary directory. */
g_chmod (keyfile_path, 0777);
g_assert_no_errno (g_chmod (keyfile_path, 0777));
g_assert_no_errno (g_remove (store_path));
g_rmdir (keyfile_path);
g_free (store_path);