[glib] gschema-test: invert expectation for min/max omit



commit d2af82e8203323e1b7fad4460c6b48411ef81711
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Mar 31 15:11:30 2011 +0530

    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 ++--
 .../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, "*<range> 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, "*<default> is not contained in the specified range*" },
   { "choices-wrong-type",           NULL, "*<choices> 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 @@
 <schemalist>
     <schema id="test">
       <key name="test" type="i">
-        <range min="100" />
-        <default>2</default>
+        <range min="100"/>
+        <default>200</default>
       </key>
     </schema>
 </schemalist>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]