From: Ryan Lortie Date: Thu, 31 Mar 2011 09:41:30 +0000 (+0530) Subject: gschema-test: invert expectation for min/max omit X-Git-Tag: 2.29.2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2af82e8203323e1b7fad4460c6b48411ef81711;p=platform%2Fupstream%2Fglib.git gschema-test: invert expectation for min/max omit It is now completely valid. Fix up what is now a legitimate range error in the schema used in one of the tests. --- diff --git a/gio/tests/gschema-compile.c b/gio/tests/gschema-compile.c index 2ffa85b..65c5c3a 100644 --- a/gio/tests/gschema-compile.c +++ b/gio/tests/gschema-compile.c @@ -50,8 +50,8 @@ static const SchemaTest tests[] = { { "bad-type", NULL, "*invalid GVariant type string*" }, { "overflow", NULL, "*out of range*" }, { "range-wrong-type", NULL, "* not allowed for keys of type*" }, - { "range-missing-min", NULL, "*element 'range' requires attribute 'min'*" }, - { "range-missing-max", NULL, "*element 'range' requires attribute 'max'*" }, + { "range-missing-min", NULL, NULL }, + { "range-missing-max", NULL, NULL }, { "default-out-of-range", NULL, "* is not contained in the specified range*" }, { "choices-wrong-type", NULL, "* not allowed for keys of type*" }, { "choice-missing-value", NULL, "*element 'choice' requires attribute 'value'*" }, diff --git a/gio/tests/schema-tests/range-missing-max.gschema.xml b/gio/tests/schema-tests/range-missing-max.gschema.xml index 8e8bd55..c5c43b9 100644 --- a/gio/tests/schema-tests/range-missing-max.gschema.xml +++ b/gio/tests/schema-tests/range-missing-max.gschema.xml @@ -1,8 +1,8 @@ - - 2 + + 200