]> diplodocus.org Git - nmh/blobdiff - test/inc/test-deb359167
Here's the proper fix instead of the hack of d28ce569fe233141f86fe516878361da01c9f9cb...
[nmh] / test / inc / test-deb359167
index 72c6b7f91e9f159d1414411556c1e44e98264a38..0058a8ab67ba7e5917615c5342e8362a4ac408f3 100755 (executable)
@@ -2,14 +2,18 @@
 # Test a variant of a mailbox which caused debian bug 359167.
 set -e
 
-. ${MH_TEST_COMMON}
+if test -z "${MH_OBJ_DIR}"; then
+    srcdir=`dirname $0`/../..
+    MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
+fi
 
-setup_test
+. "$MH_OBJ_DIR/test/common.sh"
 
-THISDIR="${srcdir}/test/inc"
+setup_test
 
 require_prog valgrind
 
+THISDIR="$srcdir/test/inc"
 TESTMBOX="$THISDIR/deb359167.mbox"
 
 if [ "$(output_md5 "$TESTMBOX" | cut -d ' ' -f 1)" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then