summaryrefslogtreecommitdiffstats
path: root/t/debugger.t
blob: 7b97272efe3666498c9c2b0a40b93e6322b1e1f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use Test::Fatal;

BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE

use Eval::Closure;

unlike(
    exception {
        eval_closure(
            source      => 'sub { $bar }',
            description => 'foo',
        )
    },
    qr/#line/,
    "#line directive isn't added when debugger is active"
);


done_testing;