diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-26 22:11:10 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-02-26 22:19:41 +0000 |
commit | 754876378d6c9b2775e8c07b4d16f9878c55949f (patch) | |
tree | 3b71e329c42d2bc83768ee8e0b2f516724130e45 /tests | |
parent | 3482925454da8c107f720448d24789ce6bf884c4 (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 'tests')
-rw-r--r-- | tests/gem_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_sync.c b/tests/gem_sync.c index 84b689e1..af3c47ed 100644 --- a/tests/gem_sync.c +++ b/tests/gem_sync.c @@ -155,7 +155,7 @@ sync_ring(int fd, unsigned ring, int num_children) gem_close(fd, object.handle); } - igt_waitchildren(); + igt_waitchildren_timeout(20, NULL); igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0); } |