This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
patch: Indent error output when sort test fails.
- From: Petter Reinholdtsen <pere at hungry dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 29 May 2003 16:39:31 +0200
- Subject: patch: Indent error output when sort test fails.
I try again. This is the small patch that was dropped when the patch
to output diff -u when the sorting test fail was accepted 2003-04-30.
This make sure the content of sort-test.out look like this when the
sorting fails:
am_ET.UTF-8 FAIL
--- am_ET.in 2003-04-18 00:01:55.000000000 +0000
+++ /usr/src/glibccvs/libc/BUILD/localedata/am_ET.xout 2003-05-29 14:02:50.000000000 +0000
@@ -1,9 +1,9 @@
-A
-B
-C
a
+A
b
+B
c
+C
<E1><89><8D>
<E1><89><8A>
<E1><89><9D>
2003-05-29 Petter Reinholdtsen <pere@hungry.com>
* sort-test.sh: Indent output from 'diff -u' when sorting test failed,
to make it easier to visually group the output.
Index: localedata/sort-test.sh
===================================================================
RCS file: /cvs/glibc/libc/localedata/sort-test.sh,v
retrieving revision 1.11
diff -u -3 -p -u -r1.11 sort-test.sh
--- localedata/sort-test.sh 1 May 2003 07:16:00 -0000 1.11
+++ localedata/sort-test.sh 29 May 2003 14:35:41 -0000
@@ -27,7 +27,7 @@ for l in $lang; do
echo "$l OK"
else
echo "$l FAIL"
- diff -u $cns.in ${common_objpfx}localedata/$cns.xout
+ diff -u $cns.in ${common_objpfx}localedata/$cns.xout | sed 's/^/ /'
status=1
fi
done