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>
This commit is contained in:
Thomas Wood
2014-05-12 10:19:52 +01:00
parent 5597a1f418
commit d8e5313a27
2 changed files with 43 additions and 3 deletions
+2
View File
@@ -465,4 +465,6 @@ extern enum igt_log_level igt_log_level;
} while (0)
void igt_set_timeout(unsigned int seconds);
#endif /* IGT_CORE_H */