Skip to content

Commit

Permalink
Fix ada tests to fail if output differs
Browse files Browse the repository at this point in the history
There was an extra `| head -300` compared to other languages, which
meant that the exit code of `diff` was ignored.  It seems more helpful
(and is more consistent) not to limit how many differences are shown
so just drop this addition.
  • Loading branch information
ojwb committed Mar 10, 2021
1 parent 9438131 commit 8b49140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ check_ada_%: $(STEMMING_DATA_ABS)/%
@if test -f '$</output.txt.gz' ; then \
gzip -dc '$</output.txt.gz'|diff -u - tmp.txt; \
else \
diff -u $</output.txt tmp.txt | head -300; \
diff -u $</output.txt tmp.txt; \
fi
@rm tmp.txt

Expand Down

0 comments on commit 8b49140

Please sign in to comment.