X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/93a31f9b884f8e8f3f7a7d50cf90ffd365a14f7c..92c3b05ef3e582d64b3cecfc261fdd66ef13a4ef:/test/inc/test-deb359167?ds=inline diff --git a/test/inc/test-deb359167 b/test/inc/test-deb359167 index d2b23029..225a2b44 100755 --- a/test/inc/test-deb359167 +++ b/test/inc/test-deb359167 @@ -3,23 +3,30 @@ set -e if test -z "${MH_OBJ_DIR}"; then - srcdir=`dirname $0`/../.. - MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR + srcdir=`dirname "$0"`/../.. + MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi . "$MH_OBJ_DIR/test/common.sh" setup_test -THISDIR="${MH_OBJ_DIR}/test/inc" +# valgrind throws a strange error on FreeBSD >= 10; skip the test +# for now while we try to track down the underlying cause. +if [ `uname -s` = 'FreeBSD' ]; then + case `uname -r` in + 1?.*) test_skip 'valgrind fails on FreeBSD >= 10' ;; + esac +fi require_prog valgrind +THISDIR="$srcdir/test/inc" TESTMBOX="$THISDIR/deb359167.mbox" -if [ "$(output_md5 "$TESTMBOX" | cut -d ' ' -f 1)" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then - echo "Test mailbox has been corrupted" - exit 1 +if [ "`output_md5 "$TESTMBOX"`" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then + echo "Test mailbox has been corrupted" + exit 1 fi # @@ -29,4 +36,4 @@ fi chmod 755 ${MH_INST_DIR}${bindir}/inc -valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX" +valgrind --error-exitcode=1 --quiet --suppressions="${srcdir}/test/valgrind.supp" inc -silent -file "$TESTMBOX"