+2011-05-01 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ testsuite: display reasons for skips to the console
+ * tests/Makefile.am (AM_TESTS_ENVIRONMENT): Open file descriptor
+ `9' to the original stderr; define `stderr_fileno_' to `9', and
+ export it.
+ * tests/self-check-report.test: Prevent new spurious failures by
+ removing from the environment any definition of `stderr_fileno_'.
+
2011-05-01 Stefano Lattarini <stefano.lattarini@gmail.com>
testsuite: use `skip_' for skipping of tests
# Some testsuite-influential variables should be overridable from the
# test scripts, but not from the environment.
+# We want warning messages and explanations for skipped tests to go to
+# the console if possible, so set up `stderr_fileno_' properly.
AM_TESTS_ENVIRONMENT = \
test x"$$me" = x || unset me; \
test x"$$required" = x || unset required; \
test x"$$parallel_tests" = x || unset parallel_tests; \
test x"$$original_AUTOMAKE" = x || unset original_AUTOMAKE; \
- test x"$$original_ACLOCAL" = x || unset original_ACLOCAL;
+ test x"$$original_ACLOCAL" = x || unset original_ACLOCAL; \
+ exec 9>&2; stderr_fileno_=9; export stderr_fileno_;
TESTS = \
aclocal.test \
# Some testsuite-influential variables should be overridable from the
# test scripts, but not from the environment.
+# We want warning messages and explanations for skipped tests to go to
+# the console if possible, so set up `stderr_fileno_' properly.
AM_TESTS_ENVIRONMENT = \
test x"$$me" = x || unset me; \
test x"$$required" = x || unset required; \
test x"$$parallel_tests" = x || unset parallel_tests; \
test x"$$original_AUTOMAKE" = x || unset original_AUTOMAKE; \
- test x"$$original_ACLOCAL" = x || unset original_ACLOCAL;
+ test x"$$original_ACLOCAL" = x || unset original_ACLOCAL; \
+ exec 9>&2; stderr_fileno_=9; export stderr_fileno_;
TESTS = \
aclocal.test \
# Test subroutines to report warnings, and to signal failures, skips
# and hard errors.
+unset stderr_fileno_ || :
+
. ./defs || Exit 1
set +e