10BC0 Permit Windows ends-of-line in allcrcs-abbrev.txt verification. · madler/crcany@7a443bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a443bb

Browse files
committed
Permit Windows ends-of-line in allcrcs-abbrev.txt verification.
Windows inserts a non-standard carriage return before the line feed when writing text files. This allows the check to succeed if one file has carriage returns and the other does not. This also permits variations in the amount and kind of white space.
1 parent e24f7b2 commit 7a443bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ model.o: model.c model.h
2626
test: src/allcrcs.c crctest mincrc allcrcs.txt allcrcs-abbrev.txt
2727
./crctest < allcrcs-abbrev.txt
2828
src/test_src
29-
./mincrc < allcrcs.txt | cmp - allcrcs-abbrev.txt
29+
./mincrc < allcrcs.txt | diff -qb - allcrcs-abbrev.txt
3030
./getcrcs | diff - allcrcs.txt
3131
clean:
3232
@rm -rf *.o crctest crcall mincrc crcany crcadd src

0 commit comments

Comments
 (0)
0