summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ipp-2.2.test6
-rw-r--r--test/ipptool.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ipp-2.2.test b/test/ipp-2.2.test
index f83cc1fab..bd4fecda2 100644
--- a/test/ipp-2.2.test
+++ b/test/ipp-2.2.test
@@ -36,14 +36,14 @@ INCLUDE "ipp-2.1.test"
EXPECT number-up-supported OF-TYPE integer|rangeOfInteger IN-GROUP printer-attributes-tag WITH-VALUE >0
EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "document-numbers"
EXPECT overrides-supported OF-TYPE keyword IN-GROUP printer-attributes-tag WITH-VALUE "pages"
- EXPECT page-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
+ EXPECT page-ranges-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE true
# Printer description attributes
EXPECT job-creation-attributes-supported OF-TYPE keyword IN-GROUP printer-attributes-tag
- EXPECT job-ids-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
+ EXPECT job-ids-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE true
EXPECT media-col-ready
EXPECT media-ready
- EXPECT multiple-document-jobs-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE 1
+ EXPECT multiple-document-jobs-supported OF-TYPE boolean IN-GROUP printer-attributes-tag COUNT 1 WITH-VALUE true
EXPECT printer-alert OF-TYPE octetString IN-GROUP printer-attributes-tag
EXPECT printer-alert-description OF-TYPE text IN-GROUP printer-attributes-tag SAME-COUNT-AS printer-alert
EXPECT printer-device-id OF-TYPE text IN-GROUP printer-attributes-tag COUNT 1
diff --git a/test/ipptool.c b/test/ipptool.c
index 7d92e960f..aa225085e 100644
--- a/test/ipptool.c
+++ b/test/ipptool.c
@@ -4540,7 +4540,7 @@ with_value(_cups_testdata_t *data, /* I - Test data */
case IPP_TAG_BOOLEAN :
for (i = 0; i < count; i ++)
{
- if ((!strcmp(value, "true")) == ippGetBoolean(attr, i))
+ if ((!strcmp(value, "true") || !strcmp(value, "1")) == ippGetBoolean(attr, i))
{
if (!matchbuf[0])
strlcpy(matchbuf, value, matchlen);