This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]