diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-01-20 10:55:18 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-01-20 10:55:18 +0000 |
commit | 70e9163c9c18e995515598085cb824e554eb7ae7 (patch) | |
tree | a42dc8b2a6c031354bf31472de888bfc8a060132 /tests/envvar-check | |
parent | cbf5993c43f49281173f185863577d86bfac6eae (diff) | |
download | coreutils-tarball-master.tar.gz |
coreutils-8.25HEADcoreutils-8.25master
Diffstat (limited to 'tests/envvar-check')
-rw-r--r-- | tests/envvar-check | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/tests/envvar-check b/tests/envvar-check index ff5927f..16d7069 100644 --- a/tests/envvar-check +++ b/tests/envvar-check @@ -1,12 +1,11 @@ # -*- sh -*- # Check environment variables for sane values while testing. -# Copyright (C) 2000, 2001, 2003, 2004, 2006 Free Software Foundation, -# Inc. +# Copyright (C) 2000-2016 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify +# 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 -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, @@ -15,9 +14,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see <http://www.gnu.org/licenses/>. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset @@ -25,22 +22,30 @@ else as_unset=false fi -envvar_check_failed=0 +envvar_check_fail=0 vars=' _POSIX2_VERSION + _STDBUF_E + _STDBUF_I + _STDBUF_O + BASH_ENV BLOCKSIZE BLOCK_SIZE CDPATH COLUMNS DF_BLOCK_SIZE DU_BLOCK_SIZE + ENV + LANGUAGE LS_BLOCK_SIZE LS_COLORS + OMP_NUM_THREADS POSIXLY_CORRECT QUOTING_STYLE SIMPLE_BACKUP_SUFFIX TABSIZE TERM + COLORTERM TIME_STYLE TMPDIR VERSION_CONTROL @@ -51,7 +56,7 @@ do if eval test \"\${$var+set}\" = set; then echo "$0: the $var environment variable is set --" \ ' unset it and rerun this test' >&2 - envvar_check_failed=1 + envvar_check_fail=1 fi done |