diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-04 18:34:06 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-04 18:34:06 +0000 |
commit | 730b0b12c4080684620b75be6787ebbae98b8418 (patch) | |
tree | ca16ba226adf3e724542c88755e890ac8e90d1a9 /t | |
parent | 43999f954454f106a60aa261bde57912dbef8b71 (diff) | |
parent | d2a79402699cee58f92911933abdc630babe73e5 (diff) | |
download | perl-730b0b12c4080684620b75be6787ebbae98b8418.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4988
Diffstat (limited to 't')
-rwxr-xr-x | t/op/closure.t | 11 | ||||
-rwxr-xr-x | t/op/fork.t | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/t/op/closure.t b/t/op/closure.t index 52d2272b80..c691d6f034 100755 --- a/t/op/closure.t +++ b/t/op/closure.t @@ -12,7 +12,7 @@ BEGIN { use Config; -print "1..170\n"; +print "1..171\n"; my $test = 1; sub test (&) { @@ -172,6 +172,15 @@ test { $foo[4]->()->(4) }; +{ + my $w; + $w = sub { + my ($i) = @_; + test { $i == 10 }; + sub { $w }; + }; + $w->(10); +} # Additional tests by Tom Phoenix <rootbeer@teleport.com>. diff --git a/t/op/fork.t b/t/op/fork.t index f3d74f978f..d82c04ff79 100755 --- a/t/op/fork.t +++ b/t/op/fork.t @@ -24,7 +24,7 @@ print "1..", scalar @prgs, "\n"; $tmpfile = "forktmp000"; 1 while -f ++$tmpfile; -END { unlink $tmpfile if $tmpfile; } +END { close TEST; unlink $tmpfile if $tmpfile; } $CAT = (($^O eq 'MSWin32') ? '.\perl -e "print <>"' : 'cat'); @@ -54,6 +54,8 @@ for (@prgs){ # bison says 'parse error' instead of 'syntax error', # various yaccs may or may not capitalize 'syntax'. $results =~ s/^(syntax|parse) error/syntax error/mig; + $results =~ s/^\n*Process terminated by SIG\w+\n?//mg + if $^O eq 'os2'; my @results = sort split /\n/, $results; if ( "@results" ne "@expected" ) { print STDERR "PROG: $switch\n$prog\n"; |