From d7ed3bcb8dd785f1404d6f68f53c6b5668ac56f8 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Fri, 30 Nov 2007 10:25:09 +0100 Subject: Define `tst', for CU_TEST_NAME. * build-aux/check.mk (am__check_pre): Set `tst', for CU_TEST_NAME in tests/check.mk. --- ChangeLog | 4 ++++ build-aux/check.mk | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8a080b1dc..4965e64e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-11-30 Ralf Wildenhues + Define `tst', for CU_TEST_NAME. + * build-aux/check.mk (am__check_pre): Set `tst', for + CU_TEST_NAME in tests/check.mk. + * tests/CuTmpdir.pm (END): Do not do the cleanup if $dir is not defined, because it then goes wild and changes the mode of all directories below $HOME. Undefined $dir can happen if the test diff --git a/build-aux/check.mk b/build-aux/check.mk index 9f63b6d17..95f56cb5f 100644 --- a/build-aux/check.mk +++ b/build-aux/check.mk @@ -94,6 +94,7 @@ SH_E_WORKAROUND = case $$- in *e*) set +e;; esac # containing $src, and passes TESTS_ENVIRONMENT. am__check_pre = \ $(SH_E_WORKAROUND); \ +tst=`echo "$$src" | sed 's|^.*/||'`; \ $(mkdir_p) "$$(dirname $@)" || exit; \ if test -f "./$$src"; then dir=./; \ elif test -f "$$src"; then dir=; \ -- cgit v1.2.3-70-g09d2