From a35e7fdbe269842c6faf2d88626bde59a6547620 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 7 Apr 2011 21:37:37 -0700 Subject: [PATCH] tests: Fix quoting in data-in tests. Without [[ ]] around the test commands, m4 swallows the inner [] in the sed argument, causing the substitution to be ineffective. Reported by Jeremy Lavergne . --- tests/data/data-in.at | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/data/data-in.at b/tests/data/data-in.at index d5595975..cfe965c5 100644 --- a/tests/data/data-in.at +++ b/tests/data/data-in.at @@ -3413,7 +3413,7 @@ AT_CLEANUP AT_SETUP([binary and hexadecimal input (IB, PIB, and PIBHEX formats)]) AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > binhex-in.data]) -AT_CHECK([wc -c < binhex-in.data | sed 's/[ ]//g'], [0], [131072 +AT_CHECK([[wc -c < binhex-in.data | sed 's/[ ]//g']], [0], [131072 ]) AT_DATA([binhex-in.sps], [dnl SET RIB=MSBFIRST. @@ -3434,7 +3434,7 @@ AT_CLEANUP AT_SETUP([BCD input (P and PK formats)]) AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > bcd-in.data]) -AT_CHECK([wc -c < bcd-in.data | sed 's/[ ]//g'], [0], [131072 +AT_CHECK([[wc -c < bcd-in.data | sed 's/[ ]//g']], [0], [131072 ]) AT_DATA([bcd-in.sps], [dnl SET ERRORS=NONE. @@ -3454,7 +3454,7 @@ AT_CLEANUP AT_SETUP([legacy input (N and Z formats)]) AT_CHECK([$PERL -e 'print pack "n", $_ foreach 0...65535' > legacy-in.data]) -AT_CHECK([wc -c < legacy-in.data | sed 's/[ ]//g'], [0], [131072 +AT_CHECK([[wc -c < legacy-in.data | sed 's/[ ]//g']], [0], [131072 ]) AT_DATA([legacy-in.sps], [dnl SET ERRORS=NONE. -- 2.30.2