settings-source test: Check returned error as well
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Nov 2011 03:25:16 +0000 (22:25 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 17 Nov 2011 14:03:39 +0000 (14:03 +0000)
gio/tests/gsettings.c

index bb21bcd..645d487 100644 (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 */