Ignore `set -e'-related failure of NetBSD sh.

* tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
fails to finish EXIT trap after set -e.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Ralf Wildenhues 2009-01-14 07:35:53 +01:00
parent 8aa9813801
commit fae0bc2352
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ignore `set -e'-related failure of NetBSD sh.
* tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
fails to finish EXIT trap after set -e.
2009-01-06 Eric Blake <ebb9@byu.net>
Maintainer cleanups.

View File

@ -334,8 +334,9 @@ dnl portability nightmares on what constructs are considered errors across
dnl various shells; therefore, an overall SKIP result is desirable on
dnl broken shells like Solaris /bin/sh.
AT_CHECK([./script '' e], [3])
AT_CHECK([./script d e], [3], [[3
]])
AT_CHECK([./script d e], [3], [stdout])
dnl NetBSD sh fails to output on stderr here.
AT_CHECK([grep 3 stdout || exit 77], [], [ignore])
AT_CLEANUP