summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/tests/Makefile.am1
-rwxr-xr-xqpid/cpp/src/tests/run_test4
2 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/Makefile.am b/qpid/cpp/src/tests/Makefile.am
index 2d4d6ec0cf..44e1574968 100644
--- a/qpid/cpp/src/tests/Makefile.am
+++ b/qpid/cpp/src/tests/Makefile.am
@@ -279,6 +279,7 @@ qpid_stream_LDADD=$(lib_client)
TESTS_ENVIRONMENT = \
VALGRIND=$(VALGRIND) \
+ LIBTOOL="$(LIBTOOL)" \
srcdir=$(srcdir) \
top_builddir=$(top_builddir) \
QPID_DATA_DIR= \
diff --git a/qpid/cpp/src/tests/run_test b/qpid/cpp/src/tests/run_test
index 5d8167ff4b..130584ff9b 100755
--- a/qpid/cpp/src/tests/run_test
+++ b/qpid/cpp/src/tests/run_test
@@ -35,7 +35,7 @@ srcdir=`dirname $0`
. $srcdir/vg_check
# Export variables from makefile.
-export VALGRIND srcdir
+export srcdir
# Set QPID_PORT if qpidd.port exists.
test -s qpidd.port && QPID_PORT=`cat qpidd.port`
@@ -67,7 +67,7 @@ if grep -l "^# Generated by .*libtool" "$1" >/dev/null 2>&1; then
# This is a libtool "executable". Valgrind it if VALGRIND specified.
test -n "$VALGRIND" && VALGRIND="$VALGRIND $VALGRIND_OPTS"
# Hide output unless there's an error.
- libtool --mode=execute $VALGRIND "$@" 2>&1 || ERROR=1
+ $LIBTOOL --mode=execute $VALGRIND "$@" 2>&1 || ERROR=1
test -n "$VALGRIND" && { vg_check $VG_LOG* || ERROR=1 ; }
else
# This is a non-libtool shell script, just execute it.