summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-02-04 18:34:06 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-02-04 18:34:06 +0000
commit730b0b12c4080684620b75be6787ebbae98b8418 (patch)
treeca16ba226adf3e724542c88755e890ac8e90d1a9 /t
parent43999f954454f106a60aa261bde57912dbef8b71 (diff)
parentd2a79402699cee58f92911933abdc630babe73e5 (diff)
downloadperl-730b0b12c4080684620b75be6787ebbae98b8418.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4988
Diffstat (limited to 't')
-rwxr-xr-xt/op/closure.t11
-rwxr-xr-xt/op/fork.t4
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";