Skip to content

Commit 2c2d7da

Browse files
committed
[perl #122445] test for overload assigned to $DB::single
1 parent 3fe9640 commit 2c2d7da

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

t/run/switchd.t

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BEGIN { require "./test.pl"; }
99

1010
# This test depends on t/lib/Devel/switchd*.pm.
1111

12-
plan(tests => 19);
12+
plan(tests => 20);
1313

1414
my $r;
1515

@@ -285,3 +285,21 @@ is(
285285
"42\n",
286286
'-d does not conflict with sort optimisations'
287287
);
288+
289+
{
290+
local $TODO = "This crashes";
291+
is(
292+
runperl(
293+
switches => [ '-Ilib', '-d:switchd_empty' ],
294+
progs => [ split "\n",
295+
'use bignum;
296+
$DB::single=2;
297+
print qq/debugged\n/;
298+
'
299+
],
300+
stderr => 1
301+
),
302+
"debugged\n",
303+
"\$DB::single set to overload"
304+
);
305+
}

0 commit comments

Comments
 (0)