X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/fa462ef71fbaf819397c59b2c07adf45a04af9f8..a6af8ec9d9c78f7a74b93814fb6031f98496ed50:/test/common.sh.in diff --git a/test/common.sh.in b/test/common.sh.in index d425dbb7..dabe6c54 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -189,8 +189,9 @@ check() { #### Shortcut to enable use of valgrind: set NMH_VALGRIND environment #### variable (to anything) so run_* will use valgrind. if [ "${NMH_VALGRIND}" -a -z "${NMH_TEST_PREFIX}" ]; then + #### Need absolute path to valgrind.supp in case the test does a cd. NMH_TEST_PREFIX="valgrind --quiet --error-exitcode=1 \ - --suppressions=$MH_OBJ_DIR/test/valgrind.supp" + --suppressions=`cd ${srcdir} && pwd`/test/valgrind.supp" fi #### Run test under another program by setting NMH_TEST_PREFIX