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:
Matthias Clasen 2006-04-26 03:12:03 +00:00 committed by Matthias Clasen
parent 3916fe18d6
commit 2ce08609db
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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);
}