settings-source test: Check returned error as well

This commit is contained in:
Matthias Clasen 2011-11-16 22:25:16 -05:00 committed by Ryan Lortie
parent a7ce1953fa
commit 97cf2d78c5

View File

@ -1905,6 +1905,7 @@ test_schema_source (void)
parent = g_settings_schema_source_get_default ();
source = g_settings_schema_source_new_from_directory ("/path/that/does/not/exist", parent, TRUE, &error);
g_assert (source == NULL);
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
g_clear_error (&error);
/* create a source with the parent */