[Intel-gfx] [PATCH i-g-t 3/7] tests/chamelium: Use 50 ms delay to wait for connector change
Paul Kocialkowski
paul.kocialkowski at linux.intel.com
Mon Jun 26 13:59:02 UTC 2017
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);
--
2.13.1
More information about the Intel-gfx
mailing list