Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Fix the wrong-category schema test
Browse files Browse the repository at this point in the history
It's supposed to test a <default l10n="..."> with a non-existent
category, so make it actually check this!

Bug #635882.
  • Loading branch information
Christian Persch authored and Matthias Clasen committed Nov 28, 2010
1 parent bfbd716 commit b4632e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gio/tests/gschema-compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static const SchemaTest tests[] = {
{ "no-default", NULL, "*<default> is required in <key>*" },
{ "missing-quotes", NULL, "*unknown keyword*" },
{ "incomplete-list", NULL, "*to follow array element*" },
{ "wrong-category", NULL, "*attribute 'l10n' invalid*" },
{ "wrong-category", NULL, "*unsupported l10n category*" },
{ "bad-type", NULL, "*invalid GVariant type string*" },
{ "overflow", NULL, "*out of range*" },
{ "range-wrong-type", NULL, "*<range> not allowed for keys of type*" },
Expand Down
4 changes: 2 additions & 2 deletions gio/tests/schema-tests/wrong-category.gschema.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<schemalist>
<schema id="wrong-category" path="/tests/" gettext-domain="test">
<key name="test" type="s" l10n="not-a-category">
<default>'foo'</default>
<key name="test" type="s">
<default l10n="not-a-category">'foo'</default>
</key>
</schema>
</schemalist>

0 comments on commit b4632e1

Please sign in to comment.