From a1140dd45845d838401425f9a3c0af944abb5795 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 6 Dec 2015 10:38:17 -0800 Subject: [PATCH] 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". --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) 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) -- 2.6.2