summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-05-12 10:19:52 +0100
committerThomas Wood <thomas.wood@intel.com>2014-05-14 12:33:01 +0100
commitd8e5313a276c856fdd6f600e69e26f45e4c370c0 (patch)
treea66c8ae4b9f23346514e45eb096afc98f9fe5d93 /lib/igt_core.h
parent5597a1f418f925f7cb298d3f74aab5ebdb0edd36 (diff)
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>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h2
1 files changed, 2 insertions, 0 deletions
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 */