From 17eb062661e02a3cea97c4893d373ce8124a0b94 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Tue, 13 May 2014 15:22:52 +0100 Subject: lib: add exit status defines Add defines for success, skip and timeout exit statuses. Suggested-by: Daniel Vetter Signed-off-by: Thomas Wood --- lib/igt_core.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib/igt_core.h') diff --git a/lib/igt_core.h b/lib/igt_core.h index 3a6ee1a4..f7f7015a 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -37,6 +37,28 @@ #include #include +/** + * IGT_EXIT_TIMEOUT: + * + * Exit status indicating a timeout occurred. + */ +#define IGT_EXIT_TIMEOUT 78 + +/** + * IGT_EXIT_SKIP: + * + * Exit status indicating the test was skipped. + */ +#define IGT_EXIT_SKIP 77 + +/** + * IGT_EXIT_SUCCESS + * + * Exit status indicating the test executed successfully. + */ +#define IGT_EXIT_SUCCESS 0 + + bool __igt_fixture(void); void __igt_fixture_complete(void); void __igt_fixture_end(void) __attribute__((noreturn)); -- cgit v1.2.3