From: Graham Knop Date: Tue, 30 Oct 2018 17:21:39 +0000 (+0100) Subject: clean up debugger environment before testing with it X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6fc5ae48ee6c9ec93b2601b96ad717ee1fc048e3;p=p5sagit%2Fnamespace-clean.git clean up debugger environment before testing with it The perl debugger uses various environment variables to configure itself, or pick which debugger to use. Clean up those environment variables before activating the debugger so that it behaves predictably. Fixes RT#127516 --- diff --git a/t/07-debugger.t b/t/07-debugger.t index 8155214..c52c34a 100644 --- a/t/07-debugger.t +++ b/t/07-debugger.t @@ -16,14 +16,17 @@ BEGIN { BEGIN { # shut up the debugger - $ENV{PERLDB_OPTS} = 'NonStop'; + delete $ENV{$_} for grep /^PERL5?DB/, keys %ENV; + delete $ENV{LOGDIR}; + $ENV{HOME} = '.'; + $ENV{PERLDB_OPTS} = 'NonStop noTTY'; } BEGIN { #line 1 #!/usr/bin/perl -d -#line 27 +#line 30 }