From 2f758d6131675cd025dfe7c08d55758b7536d638 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 28 Mar 2007 19:57:28 +0000 Subject: * cpp/tests/setup,run-unit-tests: - make run-unit-tests work directly as ./run-unit-tests as well as via make. - run-unit-tests takes list of tests to run as args or in env UNIT_TESTS. * cpp/tests/.vg-supp: - Fixed bogus symbols produced by --gen-suppressions. See http://article.gmane.org/gmane.comp.debugging.valgrind/5939 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523444 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/tests/setup | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/tests/setup') diff --git a/qpid/cpp/tests/setup b/qpid/cpp/tests/setup index a50aa8a5cc..febf613847 100644 --- a/qpid/cpp/tests/setup +++ b/qpid/cpp/tests/setup @@ -3,6 +3,8 @@ test "$VERBOSE" = yes && set -x pwd=`pwd` +test -z "$abs_srcdir" && abs_srcdir=$pwd + t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ pid=0 test -z "$TEST_DEBUG" && @@ -31,9 +33,12 @@ vg_options=" if test x$VALGRIND = x; then vg= else - vg="libtool --mode=execute valgrind `echo $vg_options` --" + vg="libtool --mode=execute $VALGRIND `echo $vg_options` --" + # Suppress dlclose or valgrind traces wont have test library symbols. + vg="env LD_PRELOAD=$pwd/.libs/libdlclose_noop.so $vg" fi + vg_leak_check() { local file=$1 -- cgit v1.2.1