* tests/touch/empty-file: Use envvar-check, so "make check" doesn't
authorJim Meyering <jim@meyering.net>
Thu, 7 Dec 2006 09:11:40 +0000 (10:11 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 7 Dec 2006 09:11:40 +0000 (10:11 +0100)
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.

ChangeLog
tests/help-version
tests/touch/empty-file
tests/touch/no-rights

index a3de0c9..43dd1c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2006-12-07  Jim Meyering  <jim@meyering.net>
 
        Make the output of "make check" more reproducible.
+       * 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/uniq/Test.pm: Don't perform the pipe-reading version of test
        118, since it emits "cat: write error: Broken pipe" on some systems.
 
index 991a1c0..c17cc49 100755 (executable)
@@ -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
index 22d857e..b918362 100755 (executable)
@@ -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}
 
index 0d9e3bd..8faef99 100755 (executable)
@@ -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}