From: Ralf Wildenhues Date: Wed, 14 Jan 2009 06:35:53 +0000 (+0100) Subject: Ignore `set -e'-related failure of NetBSD sh. X-Git-Tag: v2.63b~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae0bc2352c4d5bed92a63bd5d34390051e2cd43;p=thirdparty%2Fautoconf.git 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 --- diff --git a/ChangeLog b/ChangeLog index 63dab6e3c..20cc56ea7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-14 Ralf Wildenhues + + 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 Maintainer cleanups. diff --git a/tests/m4sh.at b/tests/m4sh.at index daedc0e46..3664a3d59 100644 --- a/tests/m4sh.at +++ b/tests/m4sh.at @@ -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