Skip to content

Commit

Permalink
[perl #122445] test for overload assigned to $DB::single
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Oct 9, 2014
1 parent 3fe9640 commit 2c2d7da
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion t/run/switchd.t
Expand Up @@ -9,7 +9,7 @@ BEGIN { require "./test.pl"; }

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

plan(tests => 19);
plan(tests => 20);

my $r;

Expand Down Expand Up @@ -285,3 +285,21 @@ is(
"42\n",
'-d does not conflict with sort optimisations'
);

{
local $TODO = "This crashes";
is(
runperl(
switches => [ '-Ilib', '-d:switchd_empty' ],
progs => [ split "\n",
'use bignum;
$DB::single=2;
print qq/debugged\n/;
'
],
stderr => 1
),
"debugged\n",
"\$DB::single set to overload"
);
}

0 comments on commit 2c2d7da

Please sign in to comment.