[glib/wip/schemasource] settings-source test: Check returned error as well
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/schemasource] settings-source test: Check returned error as well
- Date: Thu, 17 Nov 2011 03:26:06 +0000 (UTC)
commit 8d62f2b050f67d40e8b6294ef3f21a29fedf2cc7
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]