From 2e25d42eb2f0601f7e780a622191f21a8c09aa48 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 26 Mar 2023 22:08:02 -0700 Subject: [PATCH] tests: avoid an unwarranted test failure * tests/autotest.at (parallel autotest and signal handling): This test would consistently fail due to an exit status of 0. That was considered failure because the test required a SIGHUP-indicating exit status. However, an status of 0 is perfectly fine, too, so accept that. --- tests/autotest.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/autotest.at b/tests/autotest.at index 4367ff29..008153ef 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -1710,7 +1710,7 @@ AT_CHECK([($CONFIG_SHELL ./micro-suite -d -3 5-; echo $? >status) | sed 5q], AT_CHECK([grep '5.*ok' stdout], [1]) # Apparently some shells don't get around to creating 'status' any more. # And ksh93 on FreeBSD uses 256 + 13 instead of 128 + 13 -AT_CHECK([test ! -s status || grep 141 status || grep 269 status], +AT_CHECK([test ! -s status || grep 141 status || grep 269 status || grep ^0 status ], [], [ignore]) AT_CHECK([if test -f micro-suite.dir/7/micro-suite.log; then ]dnl [ echo "shell ignores SIGPIPE" > sigpipe-stamp ]dnl -- 2.11.4.GIT