From 754876378d6c9b2775e8c07b4d16f9878c55949f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 26 Feb 2016 22:11:10 +0000 Subject: igt/gem_sync: Enforce a timeout of 20s The sync test is supposed to complete in 10s. But some bugs cause it to run very, very slowly. As a defence against those, terminate the test if we wait for more than 20s. Signed-off-by: Chris Wilson --- lib/igt_core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_core.h') diff --git a/lib/igt_core.h b/lib/igt_core.h index 8f297e06..9d4c9636 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -610,6 +610,7 @@ bool __igt_fork(void); for (int child = 0; child < (num_children); child++) \ for (; __igt_fork(); exit(0)) void igt_waitchildren(void); +void igt_waitchildren_timeout(int seconds, const char *reason); /** * igt_helper_process: -- cgit v1.2.3