From 31e27af3aa8dff03b559ecc5a31f4968bf2b6a0c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 14 Jul 2010 16:29:33 -0700 Subject: [PATCH] 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. --- tests/json.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/json.at b/tests/json.at index 0449e0361..af53d76f4 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 -- 2.43.0