summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-02-26 22:11:10 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-02-26 22:19:41 +0000
commit754876378d6c9b2775e8c07b4d16f9878c55949f (patch)
tree3b71e329c42d2bc83768ee8e0b2f516724130e45 /lib/igt_core.h
parent3482925454da8c107f720448d24789ce6bf884c4 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h1
1 files changed, 1 insertions, 0 deletions
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: