diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c index dba0493d6..d842794ec 100644 --- a/gio/tests/gsettings.c +++ b/gio/tests/gsettings.c @@ -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);