Change 13929 by jhi@alpha on 2001/12/29 15:31:20

        op/exec Win32 patch from Schwern via Abe Timmerman.

Affected files ...

.... //depot/perl/t/op/exec.t#17 edit

Differences ...

==== //depot/perl/t/op/exec.t#17 (xtext) ====
Index: perl/t/op/exec.t
--- perl/t/op/exec.t.~1~        Sat Dec 29 08:45:05 2001
+++ perl/t/op/exec.t    Sat Dec 29 08:45:05 2001
@@ -14,7 +14,8 @@
 $ENV{LC_ALL}   = 'C';          # Forge English error messages.
 $ENV{LANGUAGE} = 'C';          # Ditto in GNU.
 
-my $Is_VMS = $^O eq 'VMS';
+my $Is_VMS   = $^O eq 'VMS';
+my $Is_Win32 = $^O eq 'MSWin32';
 
 plan(tests => 20);
 
@@ -35,9 +36,9 @@
 next_test();
 is( $exit, 0, '  exited 0' );
 
-# On VMS you need the quotes around the program or it won't work.
+# On VMS and Win32 you need the quotes around the program or it won't work.
 # On Unix its the opposite.
-my $quote = $Is_VMS ? '"' : '';
+my $quote = $Is_VMS || $Is_Win32 ? '"' : '';
 $tnum = curr_test();
 $exit = system $Perl, '-le', 
                "${quote}print q{ok $tnum - system(PROG, LIST)}${quote}";
@@ -102,8 +103,9 @@
 TODO: {
     my $tnum = curr_test();
     if( $^O =~ /Win32/ ) {
-        print "not ok $tnum - exec failure doesn't terminate process # TODO Win32 
exec failure waits for user input\n";
-        next_test;
+        print "not ok $tnum - exec failure doesn't terminate process " .
+              "# TODO Win32 exec failure waits for user input\n";
+        next_test();
         last TODO;
     }
 
End of Patch.

Reply via email to