aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc/sleep.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2025-04-05 20:26:23 +0100
committerPádraig Brady <P@draigBrady.com>2025-04-06 00:07:37 +0100
commit65b694257f04a8b5b566e35c58a0ba5b51f8a06c (patch)
tree2c3ad6344c15a3a1621fced1a3452abf12387244 /tests/misc/sleep.sh
parentmaint: adjustments to recent timeout change (diff)
downloadcoreutils-65b694257f04a8b5b566e35c58a0ba5b51f8a06c.tar.gz
coreutils-65b694257f04a8b5b566e35c58a0ba5b51f8a06c.zip
doc: mention the edge case of hex durations with 'd' suffix
* doc/coreutils.texi (sleep invocation): Mention that suffixes are best avoided with hex arguments. (timeout invocation): Likewise. * tests/misc/sleep.sh: Ensure 'd' is not interpreted as "day".
Diffstat (limited to 'tests/misc/sleep.sh')
-rwxr-xr-xtests/misc/sleep.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/sleep.sh b/tests/misc/sleep.sh
index d1e3bc76c..6806a6fe2 100755
--- a/tests/misc/sleep.sh
+++ b/tests/misc/sleep.sh
@@ -32,6 +32,7 @@ returns_ 1 timeout 10 sleep || fail=1
# subsecond actual sleep
timeout 10 sleep 0.001 || fail=1
timeout 10 sleep 0x.002p1 || fail=1
+timeout 10 sleep 0x0.01d || fail=1 # d is part of hex, not a day suffix
# Using small timeouts for larger sleeps is racy,
# but false positives should be avoided on most systems