From d8e5313a276c856fdd6f600e69e26f45e4c370c0 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Mon, 12 May 2014 10:19:52 +0100 Subject: 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 Acked-by: Damien Lespiau --- lib/igt_core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_core.h') diff --git a/lib/igt_core.h b/lib/igt_core.h index 7ede0d37..3a6ee1a4 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -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 */ -- cgit v1.2.3