diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-28 21:52:37 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-28 23:34:52 +0200 |
commit | d3a51faf8b62c80423dc71cd7d307fca6a2aa520 (patch) | |
tree | 60d60ca01693d0918b0d640ed9384a5e42371d66 /t/tap-more.sh | |
parent | 073216069b0f94ce4a92f5a007c953152c896424 (diff) | |
download | automake-d3a51faf8b62c80423dc71cd7d307fca6a2aa520.tar.gz |
tests: remove stale workarounds for Solaris /bin/sh
Our testsuite cannot be run with that shell anymore (as it is
not POSIX-compliant).
* t/tap-more.sh: Remove outdated workarounds for Solaris /bin/sh.
* t/self-check-exit.tap: Likewise.
* t/ansi2knr-no-more.sh: Likewise.
* t/add-missing.tap: Likewise.
* t/dist-auxfile.sh: Likewise.
* t/test-driver-custom-multitest-recheck2.sh: Likewise.
* t/ax/test-init.sh: Remove obsolete references to Solaris
/bin/sh.
* t/confh5.sh: Likewise.
* t/uninstall-fail.sh: Likewise. And update comments about
quirks of Solaris /bin/ksh and /usr/xpg4/bin/sh.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/tap-more.sh')
-rwxr-xr-x | t/tap-more.sh | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/t/tap-more.sh b/t/tap-more.sh index b25ffce87..1556d7066 100755 --- a/t/tap-more.sh +++ b/t/tap-more.sh @@ -118,10 +118,7 @@ for try in 0 1; do # Success. # Use append mode here to avoid dropping output. See automake bug#11413. - # Also, use 'echo' here to "nullify" the previous contents of 'stdout', - # since Solaris 10 /bin/sh would try to optimize a ':' away after the - # first iteration, even if it is redirected. - echo " " >stdout + : >stdout $run_make check >>stdout || { cat stdout; exit 1; } cat stdout count_test_results total=6 pass=4 fail=0 xpass=0 xfail=1 skip=1 error=0 @@ -138,15 +135,10 @@ for try in 0 1; do # Failure. - # Use 'echo' here, since Solaris 10 /bin/sh would try to optimize - # a ':' away after the first iteration, even if it is redirected. - echo dummy > not-skip - echo dummy > bail-out + : > not-skip + : > bail-out # Use append mode here to avoid dropping output. See automake bug#11413. - # Also, use 'echo' here to "nullify" the previous contents of 'stdout', - # since Solaris 10 /bin/sh would try to optimize a ':' away after the - # first iteration, even if it is redirected. - echo " " >stdout + : >stdout $run_make check >>stdout && { cat stdout; exit 1; } cat stdout count_test_results total=7 pass=4 fail=1 xpass=0 xfail=1 skip=0 error=1 |