Skip to content

Commit

Permalink
Improve robustness and detail of subprocess segfault check
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Broadwell committed Aug 14, 2014
1 parent af4e774 commit 7865e2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions timeall
Expand Up @@ -454,8 +454,8 @@ sub time_command {
. (length $err ? "Error:\n$err\n" : '');
return undef;
}
if ($out =~ /Segmentation/) {
warn "segfaulted";
if ($out =~ /Segmentation/i || $err =~ /Segmentation/i) {
warn "Command segfaulted: @$compile";
return undef;
}

Expand All @@ -467,8 +467,8 @@ sub time_command {

my ($out, $err, $status) = capture { system @run };
my $time = time - $start;
if ($out =~ /Segmentation/ || $err =~ /Segmentation/) {
warn "segfaulted";
if ($out =~ /Segmentation/i || $err =~ /Segmentation/i) {
warn "Command segfaulted: @run";
return undef;
}

Expand Down

0 comments on commit 7865e2d

Please sign in to comment.