summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-04-26 03:12:03 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-04-26 03:12:03 +0000
commit2ce08609dbd4bfcf0e7540f1f2191798cb4afdf1 (patch)
tree4f44548bb3a3fea944c07c29da8db5c7861f59fa /tests
parent3916fe18d63d90cee3e8a9d73fcb135dc695e6f1 (diff)
Add a test for the previous change.
2006-04-25 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_comments): Add a test for the previous change.
Diffstat (limited to 'tests')
-rw-r--r--tests/keyfile-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/keyfile-test.c b/tests/keyfile-test.c
index e9ec9229f..df51d14f2 100644
--- a/tests/keyfile-test.c
+++ b/tests/keyfile-test.c
@@ -509,6 +509,12 @@ test_comments (void)
check_name ("group comment", comment, group_comment, 0);
g_free (comment);
+ comment = g_key_file_get_comment (keyfile, "group3", NULL, &error);
+ check_error (&error,
+ G_KEY_FILE_ERROR,
+ G_KEY_FILE_ERROR_GROUP_NOT_FOUND);
+ g_assert (comment == NULL);
+
g_key_file_free (keyfile);
}