From 565b165115de72b4b276c0d5d6d5095e3c901a69 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 7 Dec 2006 10:11:40 +0100 Subject: * tests/touch/empty-file: Use envvar-check, so "make check" doesn't evoke diagnostics like this when COLUMNS=0 in the environment: ls: ignoring invalid width in environment variable COLUMNS: 0 * tests/touch/no-rights: Likewise. * tests/help-version: Likewise. --- tests/help-version | 2 ++ tests/touch/empty-file | 4 +++- tests/touch/no-rights | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/help-version b/tests/help-version index 991a1c0b3..c17cc493b 100755 --- a/tests/help-version +++ b/tests/help-version @@ -28,6 +28,8 @@ test "$VERBOSE" = yes && set -x test "x$SHELL" = x && SHELL=/bin/sh export SHELL +. $srcdir/envvar-check + expected_failure_status_nohup=127 expected_failure_status_printenv=2 expected_failure_status_tty=3 diff --git a/tests/touch/empty-file b/tests/touch/empty-file index 22d857ee1..b918362c8 100755 --- a/tests/touch/empty-file +++ b/tests/touch/empty-file @@ -1,7 +1,7 @@ #!/bin/sh # Make sure touch can set the mtime on an empty file. -# Copyright (C) 1998, 1999, 2000, 2005 Free Software Foundation, Inc. +# Copyright (C) 1998, 1999, 2000, 2005, 2006 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 @@ -28,6 +28,8 @@ if test "$VERBOSE" = yes; then touch --version fi +. $srcdir/../envvar-check + DEFAULT_SLEEP_SECONDS=2 SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS} diff --git a/tests/touch/no-rights b/tests/touch/no-rights index 0d9e3bd86..8faef99bf 100755 --- a/tests/touch/no-rights +++ b/tests/touch/no-rights @@ -2,7 +2,7 @@ # Make sure touch can update the times on a file that is neither # readable nor writable. -# Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2002, 2006 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 @@ -24,6 +24,8 @@ if test "$VERBOSE" = yes; then touch --version fi +. $srcdir/../envvar-check + DEFAULT_SLEEP_SECONDS=2 SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS} -- cgit v1.2.3-70-g09d2