lib: add igt_set_timeout
authorThomas Wood <thomas.wood@intel.com>
Mon, 12 May 2014 09:19:52 +0000 (10:19 +0100)
committerThomas Wood <thomas.wood@intel.com>
Wed, 14 May 2014 11:33:01 +0000 (12:33 +0100)
commitd8e5313a276c856fdd6f600e69e26f45e4c370c0
treea66c8ae4b9f23346514e45eb096afc98f9fe5d93
parent5597a1f418f925f7cb298d3f74aab5ebdb0edd36
lib: add igt_set_timeout

Add a function to stop and fail a test after the specified number of
seconds have elapsed.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Acked-by: Damien Lespiau <damien.lespiau@intel.com>
lib/igt_core.c
lib/igt_core.h