This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
eintr.t: skip based on capability rather than OS
authorDavid Mitchell <davem@iabyn.com>
Mon, 6 Jun 2011 11:30:01 +0000 (12:30 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 9 Jun 2011 10:23:58 +0000 (11:23 +0100)
commitdf375c6d048b938ecdeaecc7b264a7f1a190120a
tree403ca3217ad9823555e5c8a39ea5997a2e554df3
parentf5d1ed108fe43102221733bf8be9832be052720d
eintr.t: skip based on capability rather than OS

The t/io/eintr.t tests require read/write system to calls to be
interruptible (to see if anything nasty can be done by the signal
handler).

Many platforms aren't interruptible, which means the tests would hang.
We currently work round this by skipping based on a hard-coded list of
OSes (such as win32, VMS etc).

Change this so that we instead do an initial test as to whether they are
interruptible, and if not, skip the whole test file.
t/io/eintr.t