summaryrefslogtreecommitdiff
path: root/lib/perl5db.t
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2012-06-25 15:49:06 +0200
committerVincent Pit <perl@profvince.com>2012-06-25 15:49:06 +0200
commitf311474dd37709a4f0d401dfbfce021e4e3cadbb (patch)
tree148382584133cfdcdad31a7b97aa946d85170274 /lib/perl5db.t
parentea7bdd87ed0a0e43dbc038182ac2ebde79570a5e (diff)
downloadperl-f311474dd37709a4f0d401dfbfce021e4e3cadbb.tar.gz
Fix (and test) module listing in the debugger
This was also broken when 'use strict' was added.
Diffstat (limited to 'lib/perl5db.t')
-rw-r--r--lib/perl5db.t21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t
index 634288cac6..7cca75c59f 100644
--- a/lib/perl5db.t
+++ b/lib/perl5db.t
@@ -28,7 +28,7 @@ BEGIN {
}
}
-plan(31);
+plan(32);
my $rc_filename = '.perldb';
@@ -831,6 +831,25 @@ package main;
);
}
+# Test for 'M' (module list).
+{
+ my $wrapper = DebugWrap->new(
+ {
+ cmds =>
+ [
+ 'M',
+ 'q',
+ ],
+ prog => '../lib/perl5db/t/load-modules'
+ }
+ );
+
+ $wrapper->contents_like(
+ qr[Scalar/Util\.pm],
+ 'M (module list) works fine',
+ );
+}
+
END {
1 while unlink ($rc_filename, $out_fn);
}