summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--build-aux/check.mk1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a080b1dc..4965e64e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-11-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ 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=; \