From: Ben Pfaff Date: Wed, 14 Jul 2010 23:29:33 +0000 (-0700) Subject: Tests: Fix nonportable \" escape in printf(1) invocation. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e27af3aa8dff03b559ecc5a31f4968bf2b6a0c;p=openvswitch Tests: Fix nonportable \" escape in printf(1) invocation. 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. --- diff --git a/tests/json.at b/tests/json.at index 0449e036..af53d76f 100644 --- a/tests/json.at +++ b/tests/json.at @@ -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