13 if (!-c "/dev/null") {
14 print "1..0 # Skip: no /dev/null\n";
18 print "1..0 # Skip: no /dev/tty\n";
26 open RC, ">", ".perldb" or die $!;
29 # overly permissive perms gives "Must not source insecure rcfile"
30 # and hangs at the DB(1> prompt
31 chmod 0644, ".perldb";
34 my $target = '../lib/perl5db/t/eval-line-bug';
38 &parse_options("NonStop=0 TTY=db.out LineInfo=db.out");
50 "p \\\@{'main::_<$target'}",
57 local $ENV{PERLDB_OPTS} = "ReadLine=0";
58 runperl(switches => [ '-d' ], progfile => $target);
64 open I, "<", 'db.out' or die $!;
69 like($contents, qr/sub factorial/,
70 'The ${main::_<filename} variable in the debugger was not destroyed'
76 unlink qw(.perldb db.out);