Sys::Syslog patch to allow unix domain sockets
[p5sagit/p5-mst-13.2.git] / t / op / runlevel.t
index 2fc2174..2be2eec 100755 (executable)
@@ -17,6 +17,7 @@
 chdir 't' if -d 't';
 @INC = "../lib";
 $Is_VMS = $^O eq 'VMS';
+$Is_MSWin32 = $^O eq 'MSWin32';
 $ENV{PERL5LIB} = "../lib" unless $Is_VMS;
 
 $|=1;
@@ -40,7 +41,9 @@ for (@prgs){
     close TEST;
     my $results = $Is_VMS ?
                  `MCR $^X "-I[-.lib]" $switch $tmpfile` :
-                 `sh -c './perl $switch $tmpfile' 2>&1`;
+                     $Is_MSWin32 ?  
+                         `.\\perl -I../lib $switch $tmpfile 2>&1` :
+                             `sh -c './perl $switch $tmpfile' 2>&1`;
     my $status = $?;
     $results =~ s/\n+$//;
     # allow expected output to be written as if $prog is on STDIN
@@ -255,7 +258,7 @@ package main;
 open FH, ">&STDOUT";
 tie *FH, TEST;
 print FH "OK\n";
-print "DONE\n";
+print STDERR "DONE\n";
 EXPECT
 PRINT CALLED
 DONE