diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | tests/autotest.at | 4 | ||||
-rw-r--r-- | tests/m4sh.at | 1 |
3 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,11 @@ +2008-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> + + Fix a couple of test failures with dash. + * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize + exit status of `cd'. + * tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before + regeneration, to avoid timing effects. + 2008-11-25 Eric Blake <ebb9@byu.net> Add m4_cleardivert. diff --git a/tests/autotest.at b/tests/autotest.at index 6eb4d196..576eb80e 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -616,9 +616,9 @@ AT_CHECK([$CONFIG_SHELL ./micro-suite --clean --directory="`pwd`/sub2"]) AT_CHECK([test -f sub2/micro-suite.log], [1]) AT_CHECK([test -f sub2/micro-suite.dir], [1]) dnl check for failure detection with bad, missing, or empty directory. -AT_CHECK([$CONFIG_SHELL ./micro-suite -C nonesuch], [1], [ignore], [ignore]) +AT_CHECK([$CONFIG_SHELL ./micro-suite -C nonesuch || exit 1], [1], [ignore], [ignore]) AT_CHECK([$CONFIG_SHELL ./micro-suite -C ''], [1], [ignore], [ignore]) -AT_CHECK([$CONFIG_SHELL ./micro-suite -C -], [1], [ignore], [ignore]) +AT_CHECK([$CONFIG_SHELL ./micro-suite -C - || exit 1], [1], [ignore], [ignore]) AT_CHECK([$CONFIG_SHELL ./micro-suite -C], [1], [ignore], [ignore]) dnl check that --help overrides bad directory selection. AT_CHECK([$CONFIG_SHELL ./micro-suite -C nonesuch --help], [0], [ignore], []) diff --git a/tests/m4sh.at b/tests/m4sh.at index 0c575ded..daedc0e4 100644 --- a/tests/m4sh.at +++ b/tests/m4sh.at @@ -1308,6 +1308,7 @@ exec AS_MESSAGE_LOG_FD>- ./$child ]]) +rm -f script AT_CHECK_M4SH AT_CHECK([./script], [0], [[script: hello from parent hello1 from child |