diff options
author | Mark Wielaard <mjw@redhat.com> | 2014-10-02 22:53:44 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2014-10-02 22:58:28 +0200 |
commit | 281ebd7d5ac10c094b73c6ab812414cd7b891e60 (patch) | |
tree | 8f7469d23047e96233c6cb82b8de48dafcac0b6d /tests/run-deleted.sh | |
parent | b50014f56418d9be8eb3d5a86c693a4fda83dc09 (diff) | |
download | elfutils-281ebd7d5ac10c094b73c6ab812414cd7b891e60.tar.gz |
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 <mjw@redhat.com>
Diffstat (limited to 'tests/run-deleted.sh')
-rwxr-xr-x | tests/run-deleted.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |