Skip to content

Commit

Permalink
Merge branch 'master' of ssh://xdg@echo.dagolden.com/git/Sub-Uplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Sep 9, 2008
2 parents b736661 + b116d89 commit a7896b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/07_uplevel_too_high.t
Expand Up @@ -10,7 +10,7 @@ sub show_caller {

sub wrap_show_caller {
my $uplevel = shift;
return uplevel $uplevel, \&show_caller;;
return uplevel $uplevel, \&show_caller;
}

my $warning = '';
Expand All @@ -22,5 +22,6 @@ is( $warning, '', "don't warn if ordinary uplevel" );

$warning = '';
$caller = wrap_show_caller(2);
my $file = __FILE__;
is($caller, undef, "wrapper returned correct caller");
isnt( $warning, '', "warn if too much uplevel" );
like( $warning, "/uplevel 2 is more than the caller stack at $file line \\d+/", "warn if too much uplevel" );

0 comments on commit a7896b2

Please sign in to comment.