<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 Tue, Sep 7, 2021 at 5:54 PM Cyril Hrubis <<a href="mailto:chrubis@suse.cz">chrubis@suse.cz</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">Hi!<br>
> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/9-1.c<br>
> index 04ef0a2cc..554714695 100644<br>
> --- a/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/9-1.c<br>
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/9-1.c<br>
> @@ -17,6 +17,7 @@<br>
> #include <stdlib.h><br>
> #include <errno.h><br>
> #include "posixtest.h"<br>
> +#include "proc.h"<br>
> <br>
> #define SLEEPSEC 30<br>
> <br>
> @@ -88,7 +89,7 @@ int main(void)<br>
> /* parent here */<br>
> int i;<br>
> <br>
> - sleep(1);<br>
> + tst_process_state_wait3(pid, 'S', 1);<br>
<br>
This test is actually the only one that looks at the remining time as<br>
returned by clock_nanosleep() so it may make a sense to keep the<br>
sleep(1) in this test so that the remaining time is smaller than the<br>
sleep time by some reasonable margin. But I guess that the test will<br>
work fine without it as well.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Good point, I have retrieved that 1 sec sleep and applied. Thanks!</div></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>