summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2007-01-10 20:58:17 +0000
committerUlrich Drepper <[email protected]>2007-01-10 20:58:17 +0000
commitcd4992ca6b559af381313de4f4ecaf6550887979 (patch)
treed7a2ac98f3df84926604456842f68ab476297e19
parentba949b3fdaf4fa8631af0d999a44d71c0964b5ce (diff)
Improve diagnostic message of run-elflint-self.sh.
-rw-r--r--tests/ChangeLog4
-rwxr-xr-xtests/run-elflint-self.sh5
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 3a75bd1c..cce03fbe 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-10 Ulrich Drepper <[email protected]>
+
+ * run-elflint-self.sh (runtest): Show which file has the problem.
+
2007-01-10 Roland McGrath <[email protected]>
* dwfl-bug-addr-overflow.c: New file.
diff --git a/tests/run-elflint-self.sh b/tests/run-elflint-self.sh
index 11b4c8c5..7f7c01e0 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 <[email protected]>, 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
}