Skip to content

Commit

Permalink
apply Markus's suggested patch to stop C-Reduce when size of reduced …
Browse files Browse the repository at this point in the history
…testcase

reaches zero
  • Loading branch information
regehr committed Sep 18, 2014
1 parent 5ce2a31 commit 39721a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions creduce/creduce.in
Expand Up @@ -330,6 +330,9 @@ sub delta_pass ($) {
my $tmpdir = make_tmpdir();
chdir $tmpdir or die;
my $tmpfn = File::Spec->rel2abs($orig_tmpfn);
if (-s $toreduce_best == 0) {
die "filesize reached zero";
}
File::Copy::copy($toreduce_best,$tmpfn) or die;
# creating the variant is done in the parent, it's only
# testing it that we parallelize
Expand Down

0 comments on commit 39721a3

Please sign in to comment.