]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: tail: avoid failure on Solaris 11
authorPádraig Brady <P@draigBrady.com>
Tue, 14 Jan 2025 21:14:50 +0000 (21:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Jan 2025 12:07:52 +0000 (12:07 +0000)
commit1555bcec6aae06df01a52d3656e8ca35e7dea938
treebb73261028d0129408d28584c521335030e99d89
parent8b05659eded3ff0518743e0e553f2b76a6b87345
tests: tail: avoid failure on Solaris 11

* tests/tail/tail-c.sh: On Solaris 11, tail -c 4096 /dev/urandom,
will induce an lseek(,-4096,SEEK_END) which returns -4096 without
setting errno, and a subsequent read() then gives EINVAL.
Since tailing the end of a psuedo device is an edge case,
we just verify that we don't spin reading the device forever.
tests/tail/tail-c.sh