projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Move the $data and $result munging into the test preparation loop.
[p5sagit/p5-mst-13.2.git]
/
t
/
op
/
alarm.t
diff --git
a/t/op/alarm.t
b/t/op/alarm.t
index
b77a5ed
..
8be24db
100644
(file)
--- a/
t/op/alarm.t
+++ b/
t/op/alarm.t
@@
-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`');
}