]>
diplodocus.org Git - nmh/blob - test/inc/test-deb359167
2 # Test a variant of a mailbox which caused debian bug 359167.
5 if test -z "${MH_OBJ_DIR}"; then
6 srcdir
=`dirname "$0"`/..
/..
7 MH_OBJ_DIR
=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
10 .
"$MH_OBJ_DIR/test/common.sh"
14 # valgrind throws a strange error on FreeBSD >= 10; skip the test
15 # for now while we try to track down the underlying cause.
16 if [ `uname -s` = 'FreeBSD' ]; then
18 1?.
*) test_skip
'valgrind fails on FreeBSD >= 10' ;;
24 THISDIR
="$srcdir/test/inc"
25 TESTMBOX
="$THISDIR/deb359167.mbox"
27 if [ "`output_md5 "$TESTMBOX"`" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then
28 echo "Test mailbox has been corrupted"
33 # valgrind refuses to run on a setuid/setgid program, so chmod inc so it
34 # isn't (just in case)
37 chmod 755 ${MH_INST_DIR}${bindir}/inc
39 valgrind
--error-exitcode=1 --quiet inc
-silent -file "$TESTMBOX"