summaryrefslogtreecommitdiff
path: root/t/comp/retainedlines.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-02 22:16:56 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-02 22:16:56 +0000
commiteb044b10917d0598b3201b68e4a5d3ba7d124ef3 (patch)
treefbeef4b13858774559ce221a6f35c745780a814d /t/comp/retainedlines.t
parentf9bddea7d2a0d824366014c8ee6ba57e7dedd8c3 (diff)
downloadperl-eb044b10917d0598b3201b68e4a5d3ba7d124ef3.tar.gz
Change PL_debug behaviour so that string eval lines are saved whenever
a subroutine is defined, even if the eval'd string has subsequent syntax errors. This allows the debugger to single step into these subroutines. p4raw-id: //depot/perl@34986
Diffstat (limited to 't/comp/retainedlines.t')
-rw-r--r--t/comp/retainedlines.t9
1 files changed, 3 insertions, 6 deletions
diff --git a/t/comp/retainedlines.t b/t/comp/retainedlines.t
index bbf1e10397..c66ad741c5 100644
--- a/t/comp/retainedlines.t
+++ b/t/comp/retainedlines.t
@@ -10,7 +10,7 @@ BEGIN {
use strict;
-plan (tests => 57);
+plan (tests => 65);
$^P = 0xA;
@@ -67,11 +67,8 @@ for my $sep (' ', "\0") {
is (eval "$name()", "This is $name", "Subroutine was compiled, despite error")
or diag $@;
- my @after = grep { /eval/ } keys %::;
-
- is (@after, 0 + keys %seen,
- "current behaviour is that errors in eval trump subroutine definitions");
-
+ check_retained_lines($prog,
+ 'eval that defines subroutine but has syntax error');
$name++;
}