diff options
Diffstat (limited to 'contrib/perl5/t/io/dup.t')
-rwxr-xr-x | contrib/perl5/t/io/dup.t | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/contrib/perl5/t/io/dup.t b/contrib/perl5/t/io/dup.t deleted file mode 100755 index af13d4d..0000000 --- a/contrib/perl5/t/io/dup.t +++ /dev/null @@ -1,40 +0,0 @@ -#!./perl - -# $RCSfile: dup.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:27 $ - -print "1..6\n"; - -print "ok 1\n"; - -open(dupout,">&STDOUT"); -open(duperr,">&STDERR"); - -open(STDOUT,">Io.dup") || die "Can't open stdout"; -open(STDERR,">&STDOUT") || die "Can't open stderr"; - -select(STDERR); $| = 1; -select(STDOUT); $| = 1; - -print STDOUT "ok 2\n"; -print STDERR "ok 3\n"; -if ($^O eq 'MSWin32') { - print `echo ok 4`; - print `echo ok 5 1>&2`; # does this work? -} -else { - system 'echo ok 4'; - system 'echo ok 5 1>&2'; -} - -close(STDOUT); -close(STDERR); - -open(STDOUT,">&dupout"); -open(STDERR,">&duperr"); - -if ($^O eq 'MSWin32') { print `type Io.dup` } -else { system 'cat Io.dup' } -unlink 'Io.dup'; - -print STDOUT "ok 6\n"; - |