* [LTP] [PATCH] syscalls: semop: Increase timeout for semop03
@ 2020-10-07 5:37 Viresh Kumar
2020-10-07 11:06 ` Jan Stancek
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2020-10-07 5:37 UTC (permalink / raw)
To: ltp
Sometimes the timeout happens before the signal is received and it
causes the test to fail with following error:
semop03.c:55: TFAIL: unexpected failure: EAGAIN/EWOULDBLOCK (11)
Fix this by increasing the timeout to a sufficiently large value.
Reported-by: Rachel Sibley <rasibley@redhat.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
testcases/kernel/syscalls/ipc/semop/semop03.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/ipc/semop/semop03.c b/testcases/kernel/syscalls/ipc/semop/semop03.c
index 89603f19d651..3a79ed38a904 100644
--- a/testcases/kernel/syscalls/ipc/semop/semop03.c
+++ b/testcases/kernel/syscalls/ipc/semop/semop03.c
@@ -71,7 +71,7 @@ static void setup(void)
semop_supported_by_kernel(tv);
timeout.type = tv->ts_type;
- tst_ts_set_sec(&timeout, 0);
+ tst_ts_set_sec(&timeout, 2);
tst_ts_set_nsec(&timeout, 10000000);
SAFE_SIGNAL(SIGHUP, sighandler);
--
2.25.0.rc1.19.g042ed3e048af
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [LTP] [PATCH] syscalls: semop: Increase timeout for semop03
2020-10-07 5:37 [LTP] [PATCH] syscalls: semop: Increase timeout for semop03 Viresh Kumar
@ 2020-10-07 11:06 ` Jan Stancek
2020-10-09 8:57 ` Li Wang
0 siblings, 1 reply; 3+ messages in thread
From: Jan Stancek @ 2020-10-07 11:06 UTC (permalink / raw)
To: ltp
----- Original Message -----
> Sometimes the timeout happens before the signal is received and it
> causes the test to fail with following error:
>
> semop03.c:55: TFAIL: unexpected failure: EAGAIN/EWOULDBLOCK (11)
>
> Fix this by increasing the timeout to a sufficiently large value.
>
> Reported-by: Rachel Sibley <rasibley@redhat.com>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
> testcases/kernel/syscalls/ipc/semop/semop03.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/syscalls/ipc/semop/semop03.c
> b/testcases/kernel/syscalls/ipc/semop/semop03.c
> index 89603f19d651..3a79ed38a904 100644
> --- a/testcases/kernel/syscalls/ipc/semop/semop03.c
> +++ b/testcases/kernel/syscalls/ipc/semop/semop03.c
> @@ -71,7 +71,7 @@ static void setup(void)
> semop_supported_by_kernel(tv);
>
> timeout.type = tv->ts_type;
> - tst_ts_set_sec(&timeout, 0);
> + tst_ts_set_sec(&timeout, 2);
> tst_ts_set_nsec(&timeout, 10000000);
>
> SAFE_SIGNAL(SIGHUP, sighandler);
> --
> 2.25.0.rc1.19.g042ed3e048af
Acked-by: Jan Stancek <jstancek@redhat.com>
pointer to arm thread:
https://lore.kernel.org/linux-arm-kernel/20201007053345.4xbyjx4u4ccwkep5@vireshk-i7/T/#t
I see it sporadically on ppc kvm guests too.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] [PATCH] syscalls: semop: Increase timeout for semop03
2020-10-07 11:06 ` Jan Stancek
@ 2020-10-09 8:57 ` Li Wang
0 siblings, 0 replies; 3+ messages in thread
From: Li Wang @ 2020-10-09 8:57 UTC (permalink / raw)
To: ltp
On Wed, Oct 7, 2020 at 7:06 PM Jan Stancek <jstancek@redhat.com> wrote:
>
>
> ----- Original Message -----
> > Sometimes the timeout happens before the signal is received and it
> > causes the test to fail with following error:
> >
> > semop03.c:55: TFAIL: unexpected failure: EAGAIN/EWOULDBLOCK (11)
> >
> > Fix this by increasing the timeout to a sufficiently large value.
> >
> > Reported-by: Rachel Sibley <rasibley@redhat.com>
> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> > ---
> > testcases/kernel/syscalls/ipc/semop/semop03.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/testcases/kernel/syscalls/ipc/semop/semop03.c
> > b/testcases/kernel/syscalls/ipc/semop/semop03.c
> > index 89603f19d651..3a79ed38a904 100644
> > --- a/testcases/kernel/syscalls/ipc/semop/semop03.c
> > +++ b/testcases/kernel/syscalls/ipc/semop/semop03.c
> > @@ -71,7 +71,7 @@ static void setup(void)
> > semop_supported_by_kernel(tv);
> >
> > timeout.type = tv->ts_type;
> > - tst_ts_set_sec(&timeout, 0);
> > + tst_ts_set_sec(&timeout, 2);
> > tst_ts_set_nsec(&timeout, 10000000);
> >
> > SAFE_SIGNAL(SIGHUP, sighandler);
> > --
> > 2.25.0.rc1.19.g042ed3e048af
>
> Acked-by: Jan Stancek <jstancek@redhat.com>
>
Patch applied.
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20201009/9fac53d4/attachment.htm>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-09 8:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-07 5:37 [LTP] [PATCH] syscalls: semop: Increase timeout for semop03 Viresh Kumar
2020-10-07 11:06 ` Jan Stancek
2020-10-09 8:57 ` Li Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox