]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix run-elflint-self test for static builds (mudflap or gprof).
authorUlrich Drepper <drepper@redhat.com>
Tue, 16 Aug 2005 05:12:01 +0000 (05:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 16 Aug 2005 05:12:01 +0000 (05:12 +0000)
tests/ChangeLog
tests/run-elflint-self.sh

index ec7a22c746bab9335fa6a5fa3bb924eb110d0d2a..c8972229c6f82045d368e3feb76782e2794dfe0d 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-15  Ulrich Drepper  <drepper@redhat.com>
+
+       * run-elflint-self.sh: Don't run test if the file doesn't exist.
+
 2005-08-15  Roland McGrath  <roland@redhat.com>
 
        * dwflmodtest.c (print_instance, print_inline): New functions.
index ce5706c508b1e76ffeb4429be46f837b80984712..df7678abe1183efe2023bab5da4ef37ea514222e 100755 (executable)
@@ -18,7 +18,9 @@ export LD_LIBRARY_PATH=../libebl:../libelf${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
 runtest() {
 # Uncomment for debuging
 #  echo $1
-  ../src/elflint --quiet --gnu-ld $1
+  if [ -f $1 ]; then
+    ../src/elflint --quiet --gnu-ld $1
+  fi
 }
 
 runtest ../src/addr2line
@@ -43,5 +45,3 @@ runtest ../libebl/libebl_ppc64.so
 runtest ../libebl/libebl_sh.so
 runtest ../libebl/libebl_sparc.so
 runtest ../libebl/libebl_x86_64.so
-
-