From d2af82e8203323e1b7fad4460c6b48411ef81711 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 31 Mar 2011 15:11:30 +0530 Subject: [PATCH] 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. --- gio/tests/gschema-compile.c | 4 ++-- gio/tests/schema-tests/range-missing-max.gschema.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.7.4