Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit c233ba0

Browse files
author
Reini Urban
committed
lib/perl5db.t: save/restore t/.perldb
1 parent 1e739db commit c233ba0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/perl5db.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ plan(133);
3434
my $rc_filename = '.perldb';
3535

3636
sub rc {
37+
rename $rc_filename, $rc_filename.".orig" if -f $rc_filename;
3738
open my $rc_fh, '>', $rc_filename
3839
or die $!;
3940
print {$rc_fh} @_;
@@ -2890,4 +2891,5 @@ for my $f ('sig2sig', 'sig2pp', 'pp2sig') {
28902891

28912892
END {
28922893
1 while unlink ($rc_filename, $out_fn);
2894+
rename($rc_filename.".orig",$rc_filename) if -f $rc_filename.".orig";
28932895
}

0 commit comments

Comments
 (0)