Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153058935
D55191.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
762 B
Referenced Files
None
Subscribers
None
D55191.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D55191: sh/tests: Cut down builtins/read12.0 by 2 seconds
Attached
Detach File
Event Timeline
Log In to Comment