Commit 2ce08609 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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.
parent 3916fe18
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
......
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment