summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-05-23 11:59:40 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-05-23 11:59:40 -0400
commit0cf87cf506f484d0260d5879feb4fe1043c88f17 (patch)
treee31028d3cc9d3d7f12173ed3e307151e7ccc265d /tools
parent4d03c4ca90d8c1c0d5303427858e537fd3c415e4 (diff)
downloadcups-0cf87cf506f484d0260d5879feb4fe1043c88f17.tar.gz
Fix `EXPECT !name WITH-VALUE ...` tests.
Diffstat (limited to 'tools')
-rw-r--r--tools/ipptool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipptool.c b/tools/ipptool.c
index aca6d24cb..e54b78ad3 100644
--- a/tools/ipptool.c
+++ b/tools/ipptool.c
@@ -1448,7 +1448,7 @@ do_test(_ipp_file_t *f, /* I - IPP data file */
_ippVarsSet(vars, expect->define_no_match, "1");
else if (!expect->define_match && !expect->define_value)
{
- if (found && expect->not_expect)
+ if (found && expect->not_expect && !expect->with_value && !expect->with_value_from)
add_stringf(data->errors, "NOT EXPECTED: %s", expect->name);
else if (!found && !(expect->not_expect || expect->optional))
add_stringf(data->errors, "EXPECTED: %s", expect->name);