From: Jim Meyering Date: Fri, 23 Mar 2018 23:46:13 +0000 (-0700) Subject: test-version-etc.sh: port to diff without -c X-Git-Tag: v1.0~5694 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=70a913d7d4d0683c1fdf1988049b2add1095c276;p=gnulib.git test-version-etc.sh: port to diff without -c * tests/test-version-etc.sh: Don't use diff's -c option. This caused spurious test failure on Alpine Linux, which uses busybox's diff. Reported by Assaf Gordon in https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html --- diff --git a/ChangeLog b/ChangeLog index 9839555c71..20cd7cd53d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-03-23 Jim Meyering + + test-version-etc.sh: port to diff without -c + * tests/test-version-etc.sh: Don't use diff's -c option. + This caused spurious test failure on Alpine Linux, which + uses busybox's diff. Reported by Assaf Gordon in + https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html + 2018-03-23 Paul Eggert c-stack: port to recent GCC build diff --git a/tests/test-version-etc.sh b/tests/test-version-etc.sh index c197730af5..0b1f5be1fc 100755 --- a/tests/test-version-etc.sh +++ b/tests/test-version-etc.sh @@ -36,7 +36,7 @@ EOT /^Packaged by/d 2,3 s/Copyright (C) [0-9]\{4,4\}/COPYRIGHT/' | tr -d '\015' | - diff -c $TMP - || ERR=1 + diff $TMP - || ERR=1 rm $TMP