summaryrefslogtreecommitdiff
path: root/lib/perl5db.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-24 20:15:10 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-25 08:51:59 +0200
commitb019bbd28397aba60a9673fa89dded4500c6c783 (patch)
treebe1b78bd0eeef2f6978277f9b04136f5265cde63 /lib/perl5db.t
parentb98b7dc97e705b7a4410316cc3bc580b0b088b55 (diff)
downloadperl-b019bbd28397aba60a9673fa89dded4500c6c783.tar.gz
Fix the man/perldoc/doc command in the debugger.
This was accidentally broken by commit c7b0c61d36b24841.
Diffstat (limited to 'lib/perl5db.t')
-rw-r--r--lib/perl5db.t22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t
index fe1031b49d..81bd5da86e 100644
--- a/lib/perl5db.t
+++ b/lib/perl5db.t
@@ -28,7 +28,7 @@ BEGIN {
}
}
-plan(113);
+plan(114);
my $rc_filename = '.perldb';
@@ -2635,6 +2635,26 @@ sub _calc_trace_wrapper
);
}
+# Test the perldoc command
+# We don't actually run the program, but we need to provide one to the wrapper.
+{
+ my $wrapper = DebugWrap->new(
+ {
+ cmds =>
+ [
+ 'perldoc perlrules',
+ 'q',
+ ],
+ prog => '../lib/perl5db/t/fact',
+ }
+ );
+
+ $wrapper->output_like(
+ qr/No manual entry for perlrules/,
+ 'perldoc command works fine',
+ );
+}
+
END {
1 while unlink ($rc_filename, $out_fn);
}