summaryrefslogtreecommitdiff
path: root/cpp/tests/setup
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-03-28 19:57:28 +0000
committerAlan Conway <aconway@apache.org>2007-03-28 19:57:28 +0000
commitde9dbb7945596eeadc54995cb7b9e48339fa6731 (patch)
treecd0737c237d60848deb830907fb52c083f3a14d8 /cpp/tests/setup
parentfce31ed61257d486e48f22c8229a8b22d88beddd (diff)
downloadqpid-python-de9dbb7945596eeadc54995cb7b9e48339fa6731.tar.gz
* 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/qpid@523444 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/setup')
-rw-r--r--cpp/tests/setup7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/tests/setup b/cpp/tests/setup
index a50aa8a5cc..febf613847 100644
--- a/cpp/tests/setup
+++ b/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