changeset 39286:40f32a4011b4

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
author Jim Meyering <meyering@fb.com>
date Fri, 23 Mar 2018 16:46:13 -0700
parents a921a5cb802e
children aa7bb6bee927
files ChangeLog tests/test-version-etc.sh
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Mar 23 11:26:15 2018 -0700
+++ b/ChangeLog	Fri Mar 23 16:46:13 2018 -0700
@@ -1,3 +1,11 @@
+2018-03-23  Jim Meyering  <meyering@fb.com>
+
+	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  <eggert@cs.ucla.edu>
 
 	c-stack: port to recent GCC build
--- a/tests/test-version-etc.sh	Fri Mar 23 11:26:15 2018 -0700
+++ b/tests/test-version-etc.sh	Fri Mar 23 16:46:13 2018 -0700
@@ -36,7 +36,7 @@
       /^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