summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-07-01 20:33:14 -0700
committerRoland McGrath <roland@redhat.com>2009-07-01 20:33:14 -0700
commit8e591b3f7799aac2f4d0119ef02309e83fdd09c8 (patch)
tree41a81c88d4e89daf827ea2d1b02a22e9c0bfcbff
parent0dd9f27d6c68a147de29ade2eade4b4c29fe7bc3 (diff)
downloadelfutils-8e591b3f7799aac2f4d0119ef02309e83fdd09c8.tar.gz
Fiddle dwarfcmp test failure output.
-rw-r--r--tests/ChangeLog1
-rwxr-xr-xtests/run-dwarfcmp-self.sh15
2 files changed, 11 insertions, 5 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 1e5db4aa..b988cfec 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -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>
diff --git a/tests/run-dwarfcmp-self.sh b/tests/run-dwarfcmp-self.sh
index f108d060..cce6641a 100755
--- a/tests/run-dwarfcmp-self.sh
+++ b/tests/run-dwarfcmp-self.sh
@@ -26,15 +26,20 @@
. $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
}