(was Re: PerlIO regerssion tests?)
[p5sagit/p5-mst-13.2.git] / t / io / dup.t
index 901642d..a641db7 100755 (executable)
@@ -2,7 +2,7 @@
 
 # $RCSfile: dup.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:27 $
 
-print "1..6\n";
+print "1..8\n";
 
 print "ok 1\n";
 
@@ -17,8 +17,10 @@ select(STDOUT); $| = 1;
 
 print STDOUT "ok 2\n";
 print STDERR "ok 3\n";
-system 'echo ok 4';
-system 'echo ok 5 1>&2';
+    print `echo ok 4`;
+    print `echo ok 5 1>&2`; # does this work?
+    system 'echo ok 6';
+    system 'echo ok 7 1>&2';
 
 close(STDOUT);
 close(STDERR);
@@ -26,7 +28,9 @@ close(STDERR);
 open(STDOUT,">&dupout");
 open(STDERR,">&duperr");
 
-system 'cat Io.dup';
+if (($^O eq 'MSWin32') || ($^O eq 'NetWare')) { print `type Io.dup` }
+else                  { system 'cat Io.dup' }
 unlink 'Io.dup';
 
-print STDOUT "ok 6\n";
+print STDOUT "ok 8\n";
+