Skip to content

Commit

Permalink
Tidy up core dump file
Browse files Browse the repository at this point in the history
On machines where 'ulimit -c' does not return '0', a perl.core file is
created here.  We don't need to examine it, and it's annoying to have it
subsequently show up as an untracked file in `git status`, so simply get
rid of it per suggestion by Karen Etheridge at
Perl/perl5#21455 (comment).

For: #121
  • Loading branch information
karenetheridge authored and Leont committed Oct 21, 2023
1 parent b5a0377 commit 161ff77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/harness.t
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,12 @@ for my $test_args ( get_arg_sets() ) {

@output = ();
_runtests( $harness_failures, "$sample_tests/segfault" );
# On machines where 'ulimit -c' does not return '0', a perl.core
# file is created here. We don't need to examine it, and it's
# annoying to have it subsequently show up as an untracked file in
# `git status`, so simply get rid of it per suggestion by Karen
# Etheridge.
END { unlink 'perl.core' }

my $out_str = join q<>, @output;

Expand Down

0 comments on commit 161ff77

Please sign in to comment.