]> diplodocus.org Git - nmh/blob - test/cleanup
lock_file.c: close(2) file descriptor on failure, avoiding leak.
[nmh] / test / cleanup
1 #!/bin/sh
2 #
3 # This exists so "make check" will always clean up the "inst" directory
4 # after a run, even if tests fail. That way if you fix a problem and do
5 # another "make check", you will get new binaries to test against.
6 #
7
8 if test -z "${MH_OBJ_DIR}"; then
9 srcdir=`dirname $0`/..
10 MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
11 fi
12
13 . "${MH_OBJ_DIR}/test/common.sh"
14
15 rm -rf "${MH_TEST_DIR}"/.w3m
16
17 rm -rf "${MH_INST_DIR}"