<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 7, 2020 at 7:06 PM Jan Stancek <<a href="mailto:jstancek@redhat.com">jstancek@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
----- Original Message -----<br>
> Sometimes the timeout happens before the signal is received and it<br>
> causes the test to fail with following error:<br>
> <br>
> semop03.c:55: TFAIL: unexpected failure: EAGAIN/EWOULDBLOCK (11)<br>
> <br>
> Fix this by increasing the timeout to a sufficiently large value.<br>
> <br>
> Reported-by: Rachel Sibley <<a href="mailto:rasibley@redhat.com" target="_blank">rasibley@redhat.com</a>><br>
> Signed-off-by: Viresh Kumar <<a href="mailto:viresh.kumar@linaro.org" target="_blank">viresh.kumar@linaro.org</a>><br>
> ---<br>
> testcases/kernel/syscalls/ipc/semop/semop03.c | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
> <br>
> diff --git a/testcases/kernel/syscalls/ipc/semop/semop03.c<br>
> b/testcases/kernel/syscalls/ipc/semop/semop03.c<br>
> index 89603f19d651..3a79ed38a904 100644<br>
> --- a/testcases/kernel/syscalls/ipc/semop/semop03.c<br>
> +++ b/testcases/kernel/syscalls/ipc/semop/semop03.c<br>
> @@ -71,7 +71,7 @@ static void setup(void)<br>
> semop_supported_by_kernel(tv);<br>
> <br>
> timeout.type = tv->ts_type;<br>
> - tst_ts_set_sec(&timeout, 0);<br>
> + tst_ts_set_sec(&timeout, 2);<br>
> tst_ts_set_nsec(&timeout, 10000000);<br>
> <br>
> SAFE_SIGNAL(SIGHUP, sighandler);<br>
> --<br>
> 2.25.0.rc1.19.g042ed3e048af<br>
<br>
Acked-by: Jan Stancek <<a href="mailto:jstancek@redhat.com" target="_blank">jstancek@redhat.com</a>><br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Patch applied.</div><br></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>