mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gsettings: add test for repeated <summary> errors
Make sure error handling on repeated <summary> and <description> is being done properly, not resulting in glib-compile-schemas throwing a critical. https://bugzilla.gnome.org/show_bug.cgi?id=747542
This commit is contained in:
@@ -44,6 +44,8 @@ test_schema (gpointer data)
|
||||
if (test->err)
|
||||
{
|
||||
g_test_trap_assert_failed ();
|
||||
g_test_trap_assert_stderr_unmatched ("*CRITICAL*");
|
||||
g_test_trap_assert_stderr_unmatched ("*WARNING*");
|
||||
g_test_trap_assert_stderr (test->err);
|
||||
}
|
||||
else
|
||||
@@ -128,6 +130,7 @@ static const SchemaTest tests[] = {
|
||||
{ "flags-with-enum-tag", NULL, "*<flags id='flags'> not (yet) defined*" },
|
||||
{ "summary-xmllang", NULL, "*Only one <summary> element allowed*" },
|
||||
{ "description-xmllang", NULL, "*Only one <description> element allowed*" },
|
||||
{ "summary-xmllang-and-attrs", NULL, "*attribute 'lang' invalid for element 'summary'*" },
|
||||
{ "inherit-gettext-domain", NULL, NULL },
|
||||
{ "range-type-test", NULL, NULL },
|
||||
{ "cdata", NULL, NULL }
|
||||
|
Reference in New Issue
Block a user