mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gio/tests/gsettings: Assert that g_chmod succeeds
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
3f9f7da0f1
commit
782c1b424e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user