Improve diagnostic message of run-elflint-self.sh.
authorUlrich Drepper <drepper@redhat.com>
Wed, 10 Jan 2007 20:58:17 +0000 (20:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 10 Jan 2007 20:58:17 +0000 (20:58 +0000)
tests/ChangeLog
tests/run-elflint-self.sh

index 3a75bd1..cce03fb 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-10  Ulrich Drepper  <drepper@redhat.com>
+
+       * run-elflint-self.sh (runtest): Show which file has the problem.
+
 2007-01-10  Roland McGrath  <roland@redhat.com>
 
        * dwfl-bug-addr-overflow.c: New file.
index 11b4c8c..7f7c01e 100755 (executable)
@@ -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 <drepper@redhat.com>, 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
 }