diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-05-13 15:22:52 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2014-05-14 12:33:02 +0100 |
commit | 17eb062661e02a3cea97c4893d373ce8124a0b94 (patch) | |
tree | 5388fc2aa8b9e29d3773820b417aa06f17cd7267 /lib/igt_core.h | |
parent | c03d58595e23d155aa470e60e6debaa0ee357a1b (diff) |
lib: add exit status defines
Add defines for success, skip and timeout exit statuses.
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r-- | lib/igt_core.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 <sys/types.h> #include <stdarg.h> +/** + * 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)); |