From 281ebd7d5ac10c094b73c6ab812414cd7b891e60 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 2 Oct 2014 22:53:44 +0200 Subject: tests: run-deleted.sh unset VALGRIND_CMD before running deleted. We don't want to run the deleted test process under valgrind then eu-stack will see the valgrind process backtrace. Signed-off-by: Mark Wielaard --- tests/run-deleted.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/run-deleted.sh') diff --git a/tests/run-deleted.sh b/tests/run-deleted.sh index b3f17ff4..8c4d928e 100755 --- a/tests/run-deleted.sh +++ b/tests/run-deleted.sh @@ -19,10 +19,18 @@ tempfiles deleted deleted-lib.so cp -p ${abs_builddir}/deleted ${abs_builddir}/deleted-lib.so . + +# We don't want to run the deleted process under valgrind then +# stack will see the valgrind process backtrace. +OLD_VALGRIND_CMD="$VALGRIND_CMD" +unset VALGRIND_CMD + pid=$(testrun ${abs_builddir}/deleted) sleep 1 rm -f deleted deleted-lib.so tempfiles bt + +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 -- cgit v1.2.1