Message-Id: <
1226658297-24025-1-git-send-email-rafl@debian.org>
p4raw-id: //depot/perl@34832
lib/perl5db.pl Perl debugging routines
lib/perl5db.t Tests for the Perl debugger
lib/perl5db/t/eval-line-bug Tests for the Perl debugger
+lib/perl5db/t/lvalue-bug Tests for the Perl debugger
lib/PerlIO.pm PerlIO support module
lib/PerlIO/via/QuotedPrint.pm PerlIO::via::QuotedPrint
lib/PerlIO/via/t/QuotedPrint.t PerlIO::via::QuotedPrint
}
}
-plan(1);
+plan(2);
sub rc {
open RC, ">", ".perldb" or die $!;
'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 {
--- /dev/null
+#!/usr/bin/perl
+#
+# This code is used by lib/perl5db.t !!!
+#
+
+my $i;
+sub foo () : lvalue { $i }
+foo = 1;
+print defined foo ? "foo is defined" : "foo is still undef", "\n";