From cff4ce7a5e0c726e17ad73d24045f52b90d2caf1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 30 Aug 2021 16:57:15 -0700 Subject: [PATCH] tests: port better to NetBSD MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * tests/misc/help-version.sh: Test that /dev/full causes shell printf to fail. This ports better to NetBSD 9.88.46, where it doesn’t. Problem reported by Nelson H. F. Beebe. --- tests/misc/help-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/misc/help-version.sh b/tests/misc/help-version.sh index e883033398..67289838b8 100755 --- a/tests/misc/help-version.sh +++ b/tests/misc/help-version.sh @@ -84,7 +84,8 @@ for i in $built_programs; do env $i --version >/dev/null || fail=1 # Make sure they fail upon 'file system full' error. - if test -w /dev/full && test -c /dev/full; then + if test -w /dev/full && test -c /dev/full && + ! printf x >/dev/full 2>/dev/null; then test $i = [ && prog=lbracket || prog=$(echo $i|sed "s/$EXEEXT$//") eval "expected=\$expected_failure_status_$prog" test x$expected = x && expected=1 -- 2.47.3