[PATCH i-g-t 3/7] tests/chamelium: Use 50 ms delay to wait for connector change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux