chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib');
- plan( tests => 96 ); # some tests are run in a BEGIN block
+ plan( tests => 97 ); # some tests are run in a BEGIN block
}
my @c;
END
"caller should not SEGV for eval '' stack frames";
+TODO: {
+ local $::TODO = 'RT #7165: line number should be consistent for multiline subroutine calls';
+ fresh_perl_is(<<'EOP', "6\n9\n", {}, 'RT #7165: line number should be consistent for multiline subroutine calls');
+ sub tagCall {
+ my ($package, $file, $line) = caller;
+ print "$line\n";
+ }
+
+ tagCall
+ "abc";
+
+ tagCall
+ sub {};
+EOP
+}
+
$::testing_caller = 1;
do './op/caller.pl' or die $@;