[Intel-gfx] [PATCH i-g-t 3/7] tests/chamelium: Use 50 ms delay to wait for connector change
Lyude Paul
lyude at redhat.com
Mon Jun 26 21:36:57 UTC 2017
rb'd and pushed, thanks!
On Mon, 2017-06-26 at 16:59 +0300, Paul Kocialkowski wrote:
> Using a 1 s delay seems too large for detecting a connector change,
> that
> may happen faster than this. Since the constraints on execution time
> are
> high, it is preferable to use a much smaller sleep time.
>
> Signed-off-by: Paul Kocialkowski <paul.kocialkowski at linux.intel.com>
> ---
> tests/chamelium.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/chamelium.c b/tests/chamelium.c
> index 5075a52f..15ed0f28 100644
> --- a/tests/chamelium.c
> +++ b/tests/chamelium.c
> @@ -135,7 +135,7 @@ wait_for_connector(data_t *data, struct
> chamelium_port *port,
> return;
> }
>
> - sleep(1);
> + usleep(50000);
> }
>
> igt_assert(finished);
More information about the Intel-gfx
mailing list