summaryrefslogtreecommitdiff
path: root/tests/touch/empty-file
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-12-07 10:11:40 +0100
committerJim Meyering <jim@meyering.net>2006-12-07 10:11:40 +0100
commit565b165115de72b4b276c0d5d6d5095e3c901a69 (patch)
treed7ba822da206fbb3dc4174f35ce39ff2ce46d25f /tests/touch/empty-file
parent9f1b96313e8653f1ad5358539776c58fd8fbdaef (diff)
downloadcoreutils-565b165115de72b4b276c0d5d6d5095e3c901a69.tar.xz
* 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.
Diffstat (limited to 'tests/touch/empty-file')
-rwxr-xr-xtests/touch/empty-file4
1 files changed, 3 insertions, 1 deletions
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}