]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: run-deleted.sh unset VALGRIND_CMD before running deleted.
authorMark Wielaard <mjw@redhat.com>
Thu, 2 Oct 2014 20:53:44 +0000 (22:53 +0200)
committerMark Wielaard <mjw@redhat.com>
Thu, 2 Oct 2014 20:58:28 +0000 (22:58 +0200)
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>
tests/ChangeLog
tests/run-deleted.sh

index a6111afee2bf0c15806d2e54d35a54ca08a1ffc8..6b76248821e97284234c160b5a516da17d121d78 100644 (file)
@@ -1,3 +1,7 @@
+2014-10-02  Mark Wielaard  <mjw@redhat.com>
+
+       * run-deleted.sh: Unset VALGRIND_CMD before running deleted.
+
 2014-10-02  Mark Wielaard  <mjw@redhat.com>
 
        * Makefile.am (check_PROGRAMS): Add aggregate_size.c.
index b3f17ff42bc6de4a21b51a6a5e42847989fd2a62..8c4d928e434e7034d1ac85aaaa2b4991df7dbbb4 100755 (executable)
 
 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