This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix test suite hang on Win32 caused by change #23898
authorSteve Hay <SteveHay@planit.com>
Mon, 31 Jan 2005 10:03:56 +0000 (10:03 +0000)
committerSteve Hay <SteveHay@planit.com>
Mon, 31 Jan 2005 10:03:56 +0000 (10:03 +0000)
("perl -e sleep 3" does an indefinite sleep!)
p4raw-link: @23898 on //depot/perl: 75af1a9c52a124d2be09fece4ba0d7bc6091ed01

p4raw-id: //depot/perl@23905

t/op/alarm.t

index b77a5ed..8be24db 100644 (file)
@@ -53,7 +53,7 @@ is( $@, "ALARM!\n",             'alarm w/$SIG{ALRM} vs system()' );
 
 {
     local $SIG{"ALRM"} = sub { die };
-    eval { alarm(1); my $x = qx($Perl -e sleep 3) };
+    eval { alarm(1); my $x = qx($Perl -e "sleep 3") };
     chomp (my $foo = "foo\n");
     ok($foo eq "foo", '[perl #33928] chomp() fails after alarm(), `sleep`');
 }