mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-04 15:33:34 +08:00
tests: port better to NetBSD
* 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.
This commit is contained in:
parent
549cb8d901
commit
cff4ce7a5e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user