]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fiddle dwarfcmp test failure output.
authorRoland McGrath <roland@redhat.com>
Thu, 2 Jul 2009 03:33:14 +0000 (20:33 -0700)
committerRoland McGrath <roland@redhat.com>
Thu, 2 Jul 2009 03:33:14 +0000 (20:33 -0700)
tests/ChangeLog
tests/run-dwarfcmp-self.sh

index 1e5db4aaa8e1273f26a619dd66ca9c0dce5ef4e9..b988cfec07cdf4235ca1a5f214c8c03260363c9b 100644 (file)
@@ -1,6 +1,7 @@
 2009-07-01  Roland McGrath  <roland@redhat.com>
 
        * run-dwarfcmp-self.sh: Run on dwarflint too.
+       Fiddle failure output.
 
 2009-06-15  Roland McGrath  <roland@redhat.com>
 
index f108d060e9002b0d0d1432f4841d8309f6c20428..cce6641ae7f1b7b1387b5a12cc6d5c01357b4d0e 100755 (executable)
 . $srcdir/test-subr.sh
 
 status=0
+run_one()
+{
+  file="$1"; shift
+  testrun ../src/dwarfcmp "$@" "$file" "$file" ||
+  { echo "*** failure in dwarfcmp-self $* on $file"; status=1; }
+}
+
 runtest()
 {
   for file; do
     if [ -f $file ]; then
-      { testrun ../src/dwarfcmp -q -i $file $file &&
-       testrun ../src/dwarfcmp -i $file $file &&
-       testrun ../src/dwarfcmp -T -q -i $file $file
-      } ||
-      { echo "*** failure in $file"; status=1; }
+      run_one "$file" -i -q
+      run_one "$file" -i
+      run_one "$file" -i -q -T
     fi
   done
 }