]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: run-deleted.sh should SKIP if arch doesn't support unwinding.
authorMark Wielaard <mjw@redhat.com>
Fri, 19 Dec 2014 17:33:52 +0000 (18:33 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 19 Dec 2014 17:33:52 +0000 (18:33 +0100)
Also relax the special ARM needs DWARF check a little to account for eu-stack
error output.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/backtrace-subr.sh
tests/run-deleted.sh

index 2c3ba87e5d168ddee69f4de39c85d077cdd44d42..89336dab58d670ab0d4fb3a718224f4e630b4948 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-19  Mark Wielaard  <mjw@redhat.com>
+
+       * backtrace-subr.sh (check_native_unsupported): Relax special ARM
+       grep a little.
+       * run-deleted.sh: Call check_native_unsupported.
+
 2014-12-18  Mark Wielaard  <mjw@redhat.com>
 
        * Makefile.am (EXTRA_DIST): Add testfile-macros-0xff.bz2.
index 1d3d6d4718f0d3ebd5ac0c2353f86934e07256dd..f04721cfffc31a12dd7bc8648d5631a02603a71f 100644 (file)
@@ -87,7 +87,7 @@ check_native_unsupported()
   # and we can fall back on .debug_frame for the CFI.
   case "`uname -m`" in
     arm* )
-      if grep 'dwfl_thread_getframes: No DWARF information found' $err; then
+      if egrep 'dwfl_thread_getframes(.*)No DWARF information found' $err; then
        echo >&2 $testname: arm needs debuginfo installed for all libraries
        exit 77
       fi
index 8c4d928e434e7034d1ac85aaaa2b4991df7dbbb4..95d9444c671ace5dcac7508d3f9410c548b36590 100755 (executable)
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-. $srcdir/test-subr.sh
+. $srcdir/backtrace-subr.sh
 
 tempfiles deleted deleted-lib.so
 cp -p ${abs_builddir}/deleted ${abs_builddir}/deleted-lib.so .
@@ -28,14 +28,15 @@ unset VALGRIND_CMD
 pid=$(testrun ${abs_builddir}/deleted)
 sleep 1
 rm -f deleted deleted-lib.so
-tempfiles bt
+tempfiles bt bt.err
 
 set VALGRIND_CMD="$OLD_VALGRIND_CMD"
 # It may have non-zero exit code with:
 # .../elfutils/src/stack: dwfl_thread_getframes tid 26376 at 0x4006c8 in .../elfutils/tests/deleted: no matching address range
-testrun ${abs_top_builddir}/src/stack -p $pid >bt || true
-cat bt
+testrun ${abs_top_builddir}/src/stack -p $pid 1>bt 2>bt.err || true
+cat bt bt.err
 kill -9 $pid
 wait
+check_native_unsupported bt.err deleted
 grep -qw libfunc bt
 grep -qw main bt