ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/t/07_eval.t
(Generate patch)

Comparing Coro/t/07_eval.t (file contents):
Revision 1.3 by root, Sat Nov 25 00:40:26 2006 UTC vs.
Revision 1.4 by root, Sun Oct 7 13:53:37 2007 UTC

5 5
6async { 6async {
7 my $t = eval "2"; 7 my $t = eval "2";
8 print "ok $t\n"; 8 print "ok $t\n";
9 cede; 9 cede;
10
11 # a panic: restartop in this test can be caused by perl 5.8.8 not
12 # properly handling constant folding (change 29976/28148)
13 # (fixed in 5.10, 5.8.9)
14 # we don't want to scare users, so disable it.
15 $SIG{__DIE__} = undef if $] < 5.008009;
16
10 print defined eval "1/0" ? "not ok" : "ok", " 4\n"; 17 print defined eval "1/0" ? "not ok" : "ok", " 4\n";
11}; 18};
12 19
13async { 20async {
14 my $t = eval "3"; 21 my $t = eval "3";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines