summaryrefslogtreecommitdiffstats
path: root/t/debugger.t
diff options
context:
space:
mode:
Diffstat (limited to 't/debugger.t')
-rw-r--r--t/debugger.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/t/debugger.t b/t/debugger.t
new file mode 100644
index 0000000..7b97272
--- /dev/null
+++ b/t/debugger.t
@@ -0,0 +1,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;