Changed msg_style and msg_delim to be file static to m_getfld.c
[mmh] / test / inc / test-deb359167
1 #!/bin/sh
2 # Test a variant of a mailbox which caused debian bug 359167.
3 set -e
4
5 if test -z "${MH_OBJ_DIR}"; then
6     srcdir=`dirname "$0"`/../..
7     MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
8 fi
9
10 . "$MH_OBJ_DIR/test/common.sh"
11
12 setup_test
13
14 require_prog valgrind
15
16 THISDIR="$srcdir/test/inc"
17 TESTMBOX="$THISDIR/deb359167.mbox"
18
19 if [ "`output_md5 "$TESTMBOX"`" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then
20     echo "Test mailbox has been corrupted"
21     exit 1
22 fi
23
24 #
25 # valgrind refuses to run on a setuid/setgid program, so chmod inc so it
26 # isn't (just in case)
27 #
28
29 chmod 755 ${MH_INST_DIR}${bindir}/inc
30
31 valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX"