From: Stefano Lattarini Date: Mon, 23 Jul 2012 14:57:00 +0000 (+0200) Subject: [ng] tests: fix test driver botch-up on Solaris X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e107814e7b8e37bab286735ae316f8f179afdcfa;p=thirdparty%2Fautomake.git [ng] tests: fix test driver botch-up on Solaris This issue is very similar to the one fixed by commit v1.12.2-31-g587e0c6. The test 't/memoize.sh' was producing a '.log' file with few overly-long lines (more than 12k characters long) and, when Solaris XPG4 awk was in use, that was causing the 'test-driver.sh' script to experience a spurious failure: /usr/xpg4/bin/awk: line 382 (B): Record too long (LIMIT: 19999 bytes) tap-driver.sh: fatal: I/O or internal error * t/memoize.sh: Temporary disable shell tracing and make output in a few places, to prevent the resulting '.log' file to contain overly long lines. Signed-off-by: Stefano Lattarini --- diff --git a/t/memoize.tap b/t/memoize.tap index 6d5eda414..a08942e4f 100755 --- a/t/memoize.tap +++ b/t/memoize.tap @@ -88,15 +88,23 @@ END var=foo for i in 1 2 3 4 5 6 7 8 9 10 11 12; do var=$var$var + # Temporary disable shell traces, because otherwise the result '.log' file + # would end up having too long lines that could confuse inferior awk + # implementations (e.g., Solaris 10 /usr/xpg4/bin/awk), which would cause + # spurious errors in our test harness. + set +x done +set -x # Re-enable shell traces. T "very long variable name" <