summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-15 09:39:02 +0000
committerJim Meyering <jim@meyering.net>2004-03-15 09:39:02 +0000
commitecb24294370b699c5293128461d86f9e9a9f5845 (patch)
treedd60d8f9855001597deb88522524a9ea79f5916f /tests
parent4b7f7127023ecffe8b3e562530ff5805c6d82673 (diff)
downloadcoreutils-ecb24294370b699c5293128461d86f9e9a9f5845.tar.xz
*** empty log message ***
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/date-sec7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/misc/date-sec b/tests/misc/date-sec
index 117c95b50..a0b94b10f 100755
--- a/tests/misc/date-sec
+++ b/tests/misc/date-sec
@@ -24,8 +24,13 @@ fi
fail=0
+# It would be easier simply to sleep for two seconds between two runs
+# of `date --date="21:04 +0100" +%S` and ensure that both outputs
+# are `00', but I prefer not to sleep unconditionally. `make check'
+# takes long enough as it is.
+
n=0
-# Ensure that the current number of seconds is not just before `00'.
+# See if the current number of seconds is just before `00'.
s=`date +%S`
case "$s" in
58) n=3;;