diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-12 10:36:02 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-12 10:36:02 +0000 |
commit | 45c0de28763808112fd2f46ea311b6bb0c6050b3 (patch) | |
tree | db4c1322c63791429e59356ffdf46c9d8fde321d /t/lib/io_pipe.t | |
parent | aa854799af20b80973df4e295167b2fda1fc7a9c (diff) | |
download | perl-45c0de28763808112fd2f46ea311b6bb0c6050b3.tar.gz |
more testsuite smarts (many of them courtesy Ilya)
p4raw-id: //depot/perl@3399
Diffstat (limited to 't/lib/io_pipe.t')
-rwxr-xr-x | t/lib/io_pipe.t | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/t/lib/io_pipe.t b/t/lib/io_pipe.t index 0c1a498226..bcb89a0daf 100755 --- a/t/lib/io_pipe.t +++ b/t/lib/io_pipe.t @@ -11,10 +11,16 @@ use Config; BEGIN { if(-d "lib" && -f "TEST") { - if (! $Config{'d_fork'} || - ($Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS')) - { - print "1..0\n"; + my $reason; + if (! $Config{'d_fork'}) { + $reason = 'no fork'; + } + elsif ($Config{'extensions'} !~ /\bIO\b/) { + $reason = 'IO extension unavailable'; + } + undef $reason if $^O eq 'VMS'; + if ($reason) { + print "1..0 # Skip: $reason\n"; exit 0; } } |