[glib] Improve gsettings test coverage
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Improve gsettings test coverage
- Date: Wed, 1 Jan 2014 23:01:52 +0000 (UTC)
commit 3eeeb7aaa7d601eb6f46005a03638744a890e9f8
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 24 00:05:36 2013 -0500
Improve gsettings test coverage
gio/tests/gsettings.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index 524ff06..6af21cd 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -2414,6 +2414,15 @@ test_null_backend (void)
writable = g_settings_is_writable (settings, "greeting");
g_assert (!writable);
+ g_settings_reset (settings, "greeting");
+
+ g_settings_delay (settings);
+ g_settings_set (settings, "greeting", "s", "goodbye world");
+ g_settings_apply (settings);
+ g_settings_get (settings, "greeting", "s", &str);
+ g_assert_cmpstr (str, ==, "Hello, earthlings");
+ g_free (str);
+
g_object_unref (settings);
g_object_unref (backend);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]