Skip to content
Snippets Groups Projects
Commit 337f4eb0 authored by Avi Kivity's avatar Avi Kivity Committed by Pekka Enberg
Browse files

tst-kill: fix timeout test


The timeout test sets a 2 second timeout and a 1 second alarm, and expects
the timeout to happen first.

Change the timeout to 0.5 seconds.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 9b9aa6cb
No related branches found
No related tags found
No related merge requests found
......@@ -100,9 +100,9 @@ int main(int ac, char** av)
report(sr != SIG_ERR, "set SIGALRM handlerto SIG_IGN");
struct timeval tv = {0};
tv.tv_sec = 2;
tv.tv_usec = 500000;
auto res = setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
report(res == 0, "set socket receive timeout 2 seconds");
report(res == 0, "set socket receive timeout 0.5 seconds");
alarm(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment