diff options
author | Mark Wielaard <mjw@redhat.com> | 2012-10-01 16:14:12 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2012-10-01 17:33:14 +0200 |
commit | e3e3ee261e0d2f8716b5011ca5fcfc88766146f5 (patch) | |
tree | 4b096a1a1dea2deafbd2656303569f99a50381fb /tests/test-subr.sh | |
parent | ea45ac8e1d937b727122a0a286ad9b37f02fe0a2 (diff) | |
download | elfutils-e3e3ee261e0d2f8716b5011ca5fcfc88766146f5.tar.gz |
Add configure --enable-valgrind option to run all tests under valgrind.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'tests/test-subr.sh')
-rw-r--r-- | tests/test-subr.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-subr.sh b/tests/test-subr.sh index ff29136f..19a9836a 100644 --- a/tests/test-subr.sh +++ b/tests/test-subr.sh @@ -72,7 +72,7 @@ testrun() built_testrun() { LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"\ - "$@" + $VALGRIND_CMD "$@" } installed_testrun() @@ -93,9 +93,9 @@ installed_testrun() if [ "${libdir}" != /usr/lib ] && [ "${libdir}" != /usr/lib64 ]; then LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils\ ${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \ - $program ${1+"$@"} + $VALGRIND_CMD $program ${1+"$@"} else - $program ${1+"$@"} + $VALGRIND_CMD $program ${1+"$@"} fi } |