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"
16 THISDIR="$srcdir/test/inc"
17 TESTMBOX="$THISDIR/deb359167.mbox"
19 if [ `output_md5 "$TESTMBOX"` != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then
20 echo "Test mailbox has been corrupted"
25 # valgrind refuses to run on a setuid/setgid program, so chmod inc so it
26 # isn't (just in case)
29 chmod 755 ${MH_INST_DIR}${bindir}/inc
31 valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX"