diff options
Diffstat (limited to 'lib/Carp.t')
-rw-r--r-- | lib/Carp.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Carp.t b/lib/Carp.t index a318c19751..e9dd8cd7f5 100644 --- a/lib/Carp.t +++ b/lib/Carp.t @@ -5,7 +5,7 @@ BEGIN { use Carp qw(carp cluck croak confess); -print "1..7\n"; +print "1..8\n"; print "ok 1\n"; @@ -51,3 +51,8 @@ sub_6; print "ok 7\n"; +# test for caller_info API +my $eval = "use Carp::Heavy; return Carp::caller_info(0);"; +my %info = eval($eval); +print "not " if ($info{sub_name} ne "eval '$eval'"); +print "ok 8\n"; |