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