From: Roland McGrath Date: Thu, 2 Jul 2009 03:33:14 +0000 (-0700) Subject: Fiddle dwarfcmp test failure output. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e591b3f7799aac2f4d0119ef02309e83fdd09c8;p=thirdparty%2Felfutils.git Fiddle dwarfcmp test failure output. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 1e5db4aaa..b988cfec0 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,6 +1,7 @@ 2009-07-01 Roland McGrath * run-dwarfcmp-self.sh: Run on dwarflint too. + Fiddle failure output. 2009-06-15 Roland McGrath diff --git a/tests/run-dwarfcmp-self.sh b/tests/run-dwarfcmp-self.sh index f108d060e..cce6641ae 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 }