Skip to content

Commit

Permalink
Always attempt to refudge.
Browse files Browse the repository at this point in the history
Handles cases when arguments change or version control mucks with timestamps.
  • Loading branch information
coke committed Jan 9, 2012
1 parent f951a3e commit 2372496
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions fudge
Expand Up @@ -61,15 +61,7 @@ unless (-e $IN) {
die "$0: No such test file '$IN'\n";
}

if (-e $OUT) {
if (-M $IN >= -M $OUT and -M $0 >= -M $OUT) {
print "$OUT\n"; # unchanged, so no need to refudge
exit(0);
}
else {
unlink $OUT; # old fudged version, may or may not regenerate...
}
}
unlink $OUT; # old fudged version, may or may not regenerate...

my $REALLY_FUDGED = 0;
my $OUTPUT = "";
Expand Down

0 comments on commit 2372496

Please sign in to comment.