Tests: Fix nonportable \" escape in printf(1) invocation.
authorBen Pfaff <blp@nicira.com>
Wed, 14 Jul 2010 23:29:33 +0000 (16:29 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 14 Jul 2010 23:29:33 +0000 (16:29 -0700)
The \" escape is not part of POSIX, but it is a common extension.  The
dash shell's built-in "printf" implementation does not include this
extension, which caused the testsuite to be generated incorrectly if it
is used as the default shell (as it is on newer versions of Debian and
Ubuntu).

However, there's no reason to use a backslash here at all, so just omit
it.

tests/json.at

index 0449e03..af53d76 100644 (file)
@@ -78,7 +78,7 @@ JSON_CHECK_NEGATIVE([null bytes not allowed],
 
 AT_SETUP([end of input in quoted string])
 AT_KEYWORDS([json negative])
-AT_CHECK([printf '\"xxx' | test-json -], [1],
+AT_CHECK([printf '"xxx' | test-json -], [1],
   [error: line 0, column 4, byte 4: unexpected end of input in quoted string
 ])
 AT_CLEANUP