Add TODO test for :lvalue under -d.
[p5sagit/p5-mst-13.2.git] / lib / perl5db.t
index 2cf7958..22a8271 100644 (file)
@@ -26,7 +26,7 @@ my $dev_tty = '/dev/tty';
     }
 }
 
-plan(1);
+plan(2);
 
 sub rc {
     open RC, ">", ".perldb" or die $!;
@@ -76,6 +76,13 @@ like($contents, qr/sub factorial/,
     'The ${main::_<filename} variable in the debugger was not destroyed'
 );
 
+TODO: {
+    local $ENV{PERLDB_OPTS} = "ReadLine=0";
+    local $::TODO = "lvalueness isn't propagated in the debugger";
+    my $output = runperl(switches => [ '-d' ], progfile => '../lib/perl5db/t/lvalue-bug');
+    like($output, qr/foo is defined/, 'lvalue subs work in the debugger');
+}
+
 # clean up.
 
 END {