From be144d0c24adc968f5d821986dbac5282e18321e Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 2 Nov 2012 13:33:19 +0000 Subject: [PATCH] Fix EXPECT WITH-VALUE with quoted strings. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10675 7a7537e8-13f0-0310-91df-b6672ffda945 --- test/ipptool.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/ipptool.c b/test/ipptool.c index eeecbd8346..3882ef6478 100644 --- a/test/ipptool.c +++ b/test/ipptool.c @@ -2147,6 +2147,20 @@ do_tests(_cups_vars_t *vars, /* I - Variables */ * WITH-VALUE is a literal value... */ + char *ptr; /* Pointer into value */ + + for (ptr = token; *ptr; ptr ++) + { + if (*ptr == '\\' && ptr[1]) + { + /* + * Remove \ from \foo... + */ + + _cups_strcpy(ptr, ptr + 1); + } + } + last_expect->with_value = strdup(token); last_expect->with_flags |= _CUPS_WITH_LITERAL; } -- 2.47.3