* sbr/m_getfld.c: fix two bugs which could cause us to walk off
[mmh] / test / tests / inc / test-deb359167
1 #!/bin/sh
2 # Test a variant of a mailbox which caused debian bug 359167.
3 set -e
4
5 . common.sh
6
7 THISDIR="tests/inc"
8
9 require_prog valgrind
10
11 TESTMBOX="$THISDIR/deb359167.mbox"
12
13 if [ "$(md5sum "$TESTMBOX" | cut -d ' ' -f 1)" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then 
14   echo "Test mailbox has been corrupted"
15   exit 1
16 fi
17
18 valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX"