diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-11-29 21:15:59 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-11-29 21:21:12 +0000 |
commit | a2bb79844fa9ef0a24a5930c88f6abd97180b9fa (patch) | |
tree | 8223fe96d1875bba4f6bc5a4d40bb3a62ba5997f /tests/tail-2 | |
parent | 0655b86a6ebc6f1324810d504a71803aa708d162 (diff) | |
download | coreutils-a2bb79844fa9ef0a24a5930c88f6abd97180b9fa.tar.xz |
tests: fix ERRORs and false FAILs on some platforms
* tests/misc/ls-time.sh: Skip the test rather than ERROR
when `touch -m -d ...` fails (Hurd).
* tests/tail-2/follow-stdin.sh: Avoid false FAILs by ignoring
the variances in sterror output.
* tests/rm/rm-readdir-fail.sh: Likewise. Also avoid ERRORs
on systems that don't define _D_EXACT_NAMELEN.
Diffstat (limited to 'tests/tail-2')
-rwxr-xr-x | tests/tail-2/follow-stdin.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/tail-2/follow-stdin.sh b/tests/tail-2/follow-stdin.sh index 3d51f6006..51ce82b0e 100755 --- a/tests/tail-2/follow-stdin.sh +++ b/tests/tail-2/follow-stdin.sh @@ -52,13 +52,14 @@ done # Before coreutils-8.26 this would induce an UMR under UBSAN -returns_ 1 timeout 10 tail -f - <&- 2>err || fail=1 +returns_ 1 timeout 10 tail -f - <&- 2>errt || fail=1 cat <<\EOF >exp || framework_failure_ -tail: cannot fstat 'standard input': Bad file descriptor -tail: error reading 'standard input': Bad file descriptor +tail: cannot fstat 'standard input' +tail: error reading 'standard input' tail: no files remaining -tail: -: Bad file descriptor +tail: - EOF +sed 's/\(tail:.*\):.*/\1/' errt > err || framework_failure_ compare exp err || fail=1 |