summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2015-12-06 10:38:17 -0800
committerJim Meyering <meyering@fb.com>2015-12-06 11:22:45 -0800
commita1140dd45845d838401425f9a3c0af944abb5795 (patch)
tree50adc36d5ef5161741d17971868d3f4d78791ecb /tests
parentd77f95f8dcbfa6e160d74e07cbd5f7def737975e (diff)
downloaddiffutils-a1140dd45845d838401425f9a3c0af944abb5795.tar.gz
tests: arrange to print any skipped-test explanation to tty, too
I noticed that when a test was skipped, the reason was not printed. This fixes it. In coreutils, this variable is set in init.cfg, but there is no point in putting the definition so far from the code that chooses the file descriptor number in tests/Makefile.am. * tests/Makefile.am (TESTS_ENVIRONMENT) [stderr_fileno_]: Define here (to 9), right next to the companion "9>&2".
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 805ccc2..083a00a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -46,6 +46,7 @@ TESTS_ENVIRONMENT = \
export PREFERABLY_POSIX_SHELL; \
REPLACE_GETCWD=$(REPLACE_GETCWD); export REPLACE_GETCWD; \
PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH"; export PATH \
+ stderr_fileno_=9; export stderr_fileno \
; 9>&2
LOG_COMPILER= $(SHELL)