Page MenuHomeFreeBSD

D55191.diff
No OneTemporary

D55191.diff

diff --git a/bin/sh/tests/builtins/read12.0 b/bin/sh/tests/builtins/read12.0
--- a/bin/sh/tests/builtins/read12.0
+++ b/bin/sh/tests/builtins/read12.0
@@ -1,5 +1,5 @@
-# Verify that `read -t 3 v` succeeds immediately if input is available
-# and times out after 3 s if not
+# Verify that `read -t 1 v` succeeds immediately if input is available
+# and times out after 1 s if not
set -e
@@ -15,7 +15,7 @@
v=original_value
r=0
ts=$(date +%s%3N)
-read -t 3 v <&3 || r=$?
+read -t 1 v <&3 || r=$?
te=$(date +%s%3N)
[ "$r" -eq 0 ]
[ $((te-ts)) -lt 250 ]
@@ -24,7 +24,7 @@
v=original_value
r=0
ts=$(date +%s%3N)
-read -t 3 v <&3 || r=$?
+read -t 1 v <&3 || r=$?
te=$(date +%s%3N)
kill -TERM "$!" || :
[ "$r" -gt 128 ] && [ "$(kill -l "$r")" = ALRM ]

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 19, 9:43 PM (20 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28606534
Default Alt Text
D55191.diff (762 B)

Event Timeline