From cfd416de448c3712d450d1994daf7fa3ae9fa6f4 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 27 Mar 2007 19:57:00 +0000 Subject: Fix valgrind on unit tests: missing symbols for dynamically unloaded libs. Interposed library supresses dlclose so symbols are reported. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@523055 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/tests/run-unit-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/tests/run-unit-tests') diff --git a/cpp/tests/run-unit-tests b/cpp/tests/run-unit-tests index 0ab01f05c5..b0ef82e558 100755 --- a/cpp/tests/run-unit-tests +++ b/cpp/tests/run-unit-tests @@ -3,7 +3,7 @@ . $srcdir/setup fail=0 -$vg DllPlugInTester -c -b $pwd/.libs/*.so 2> out || fail=1 -vg_check out || fail=1 +LD_PRELOAD=$pwd/.libs/libdlclose_noop.so $vg DllPlugInTester -c -b $pwd/.libs/*Test.so 2> valgrind.out || fail=1 +vg_check valgrind.out || fail=1 exit $fail -- cgit v1.2.1