summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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;;