mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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.
This commit is contained in:
parent
3916fe18d6
commit
2ce08609db
@ -1,5 +1,8 @@
|
||||
2006-04-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/keyfile-test.c (test_comments): Add a test for
|
||||
the previous change.
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
|
||||
redundant code.
|
||||
(g_key_file_get_group_comment): Don't dereference before
|
||||
|
@ -1,5 +1,8 @@
|
||||
2006-04-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* tests/keyfile-test.c (test_comments): Add a test for
|
||||
the previous change.
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
|
||||
redundant code.
|
||||
(g_key_file_get_group_comment): Don't dereference before
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user