From: David Levine Date: Sun, 29 Dec 2013 00:24:54 +0000 (-0600) Subject: Added test/valgrind.supp to EXTRA_DIST in Makefile.am so that X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5b67b1d4d8a843850665d3d1cf262a08a5e24b04?ds=inline Added test/valgrind.supp to EXTRA_DIST in Makefile.am so that NMH_VALGRIND=1 works with make distcheck. --- diff --git a/Makefile.am b/Makefile.am index a1e7bb09..20532ea9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -262,7 +262,7 @@ EXTRA_DIST = config/version.sh sbr/sigmsg.awk etc/mts.conf.in \ test/README test/fakesendmail $(TESTS) test/inc/deb359167.mbox \ test/inc/fromline.txt test/inc/msgheader.txt test/inc/filler.txt \ test/inc/md5sums test/mhmail/attachment.txt \ - test/post/test-post-common.sh uip/mhmail \ + test/post/test-post-common.sh test/valgrind.supp uip/mhmail \ SPECS/nmh.spec SPECS/build-nmh-cygwin $(man_SRCS) ## 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