From: Ulrich Drepper Date: Wed, 10 Jan 2007 20:58:17 +0000 (+0000) Subject: Improve diagnostic message of run-elflint-self.sh. X-Git-Tag: elfutils-0.125~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd4992ca6b559af381313de4f4ecaf6550887979;p=thirdparty%2Felfutils.git Improve diagnostic message of run-elflint-self.sh. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 3a75bd1c7..cce03fbe2 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2007-01-10 Ulrich Drepper + + * run-elflint-self.sh (runtest): Show which file has the problem. + 2007-01-10 Roland McGrath * dwfl-bug-addr-overflow.c: New file. diff --git a/tests/run-elflint-self.sh b/tests/run-elflint-self.sh index 11b4c8c51..7f7c01e07 100755 --- a/tests/run-elflint-self.sh +++ b/tests/run-elflint-self.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2005 Red Hat, Inc. +# Copyright (C) 2005, 2007 Red Hat, Inc. # This file is part of Red Hat elfutils. # Written by Ulrich Drepper , 2005. # @@ -30,7 +30,8 @@ runtest() { # Uncomment for debuging # echo $1 if [ -f $1 ]; then - testrun ../src/elflint --quiet --gnu-ld $1 + testrun ../src/elflint --quiet --gnu-ld $1 || + (echo "*** failure in $1"; exit 1) fi }