[glib] settings-source test: Check returned error as well



commit 97cf2d78c58c942538ab125bd90bf23841e169b0
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 16 22:25:16 2011 -0500

    settings-source test: Check returned error as well

 gio/tests/gsettings.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index bb21bcd..645d487 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]