aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-08 10:36:59 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-08 10:41:37 -0500
commitf7c6401ff84ab8ffffc281a29aa0a787f7eb346e (patch)
tree8d90ead71336f264f58014f6b264cfb7f6d485b4 /tools/net
parentktest: Fix while loop in wait_for_input (diff)
downloadlinux-dev-f7c6401ff84ab8ffffc281a29aa0a787f7eb346e.tar.xz
linux-dev-f7c6401ff84ab8ffffc281a29aa0a787f7eb346e.zip
ktest: Make sure wait_for_input does honor the timeout
The function wait_for_input takes in a timeout, and even has a default timeout. But if for some reason the STDIN descriptor keeps sending in data, the function will never time out. The timout is to wait for the data from the passed in file descriptor, not for STDIN. Adding a test in the case where there's no data from the passed in file descriptor that checks to see if the timeout passed, will ensure that it will timeout properly even if there's input in STDIN. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/net')
0 files changed, 0 insertions, 0 deletions