Avoid test failure on Linux when STDIN is /dev/null
authorGisle Aas <gisle@aas.no>
Thu, 9 Jul 2009 17:27:12 +0000 (19:27 +0200)
committerGisle Aas <gisle@aas.no>
Thu, 9 Jul 2009 17:27:12 +0000 (19:27 +0200)
commit4d6e9c138f96185492e3fdf6a460594feb4fee57
tree31b00e35371014c549bc407f2a06f193583848be
parentb5b25974c108bfd828d399a7769c12e7c18ed3d2
Avoid test failure on Linux when STDIN is /dev/null

sysseek($fh, -1, 0) succeed on Linux when $fh is a handle to /dev/null.
In our build environment the perl test suite runs with STDIN redirected
from /dev/null and without a /dev/tty.  The hope is that the same seek
on a regular file will always fail.
t/lib/warnings/9uninit