mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-13 12:37:46 +02:00
settings-source test: Check returned error as well
This commit is contained in:
committed by
Ryan Lortie
parent
a7ce1953fa
commit
97cf2d78c5
@@ -1905,6 +1905,7 @@ test_schema_source (void)
|
|||||||
parent = g_settings_schema_source_get_default ();
|
parent = g_settings_schema_source_get_default ();
|
||||||
source = g_settings_schema_source_new_from_directory ("/path/that/does/not/exist", parent, TRUE, &error);
|
source = g_settings_schema_source_new_from_directory ("/path/that/does/not/exist", parent, TRUE, &error);
|
||||||
g_assert (source == NULL);
|
g_assert (source == NULL);
|
||||||
|
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
|
|
||||||
/* create a source with the parent */
|
/* create a source with the parent */
|
||||||
|
Reference in New Issue
Block a user