From: Ulrich Drepper Date: Tue, 16 Aug 2005 05:12:01 +0000 (+0000) Subject: Fix run-elflint-self test for static builds (mudflap or gprof). X-Git-Tag: elfutils-0.120~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=837b522ee677ef371b800b8b08c5658293fe03ca;p=thirdparty%2Felfutils.git Fix run-elflint-self test for static builds (mudflap or gprof). --- diff --git a/tests/ChangeLog b/tests/ChangeLog index ec7a22c74..c8972229c 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2005-08-15 Ulrich Drepper + + * run-elflint-self.sh: Don't run test if the file doesn't exist. + 2005-08-15 Roland McGrath * dwflmodtest.c (print_instance, print_inline): New functions. diff --git a/tests/run-elflint-self.sh b/tests/run-elflint-self.sh index ce5706c50..df7678abe 100755 --- a/tests/run-elflint-self.sh +++ b/tests/run-elflint-self.sh @@ -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 - -