8ca639540ab0fa6b851e214e5328d0434ba67708
[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 . $MH_TEST_COMMON
6
7 THISDIR="tests/inc"
8
9 require_prog valgrind
10
11 TESTMBOX="$THISDIR/deb359167.mbox"
12
13 if [ "$(cksum "$TESTMBOX")" != \
14                 "2235746290 3324 tests/inc/deb359167.mbox" ]; then 
15         echo "Test mailbox has been corrupted"
16         exit 1
17 fi
18
19 valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX"