diff options
author | Jim Meyering <meyering@redhat.com> | 2009-02-27 09:12:14 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-03-02 09:35:12 +0100 |
commit | 1c7d5b58476d5bf5ab8db5d025b7d0820611aae7 (patch) | |
tree | 465891eddac2b2f93972397b0b899488e515523b /tests/check.mk | |
parent | 6449370e9e07939712bbe0ebfad38ad78ab69097 (diff) | |
download | coreutils-1c7d5b58476d5bf5ab8db5d025b7d0820611aae7.tar.xz |
tests: when skipping a test, say why on screen, not just in the log
* tests/test-lib.sh: Redirect also to descriptor 9.
Better one-line why-skip diagnostics.
* tests/check.mk (TESTS_ENVIRONMENT): Redirect 9 to stderr.
* tests/misc/pwd-unreadable-parent: Remove redundant "skipping..." diag.
Diffstat (limited to 'tests/check.mk')
-rw-r--r-- | tests/check.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/check.mk b/tests/check.mk index 527e50581..db5f90093 100644 --- a/tests/check.mk +++ b/tests/check.mk @@ -1,5 +1,5 @@ # Include this file at the end of each tests/*/Makefile.am. -# Copyright (C) 2007, 2008 Free Software Foundation, Inc. +# Copyright (C) 2007-2009 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -52,6 +52,7 @@ TESTS_ENVIRONMENT = \ tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \ . $(srcdir)/envvar-check; \ TMPDIR=$$tmp__; export TMPDIR; \ + exec 9>&2; \ shell_or_perl_() { \ if grep '^\#!/usr/bin/perl' "$$1" > /dev/null; then \ if $(PERL) -e 'use warnings' > /dev/null 2>&1; then \ |