]> diplodocus.org Git - nmh/blobdiff - test/inc/test-deb359167
Editing of man/rcvstore.man.
[nmh] / test / inc / test-deb359167
index 85e45758e391c5cb1e7830e03117ba614e4b455b..225a2b4408d9eaaf0181791606263308de2bfb12 100755 (executable)
@@ -11,12 +11,20 @@ fi
 
 setup_test
 
 
 setup_test
 
+# 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"
 
 require_prog valgrind
 
 THISDIR="$srcdir/test/inc"
 TESTMBOX="$THISDIR/deb359167.mbox"
 
-if [ `output_md5 "$TESTMBOX"` != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then
+if [ "`output_md5 "$TESTMBOX"`" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then
     echo "Test mailbox has been corrupted"
     exit 1
 fi
     echo "Test mailbox has been corrupted"
     exit 1
 fi
@@ -28,4 +36,4 @@ fi
 
 chmod 755 ${MH_INST_DIR}${bindir}/inc
 
 
 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"