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>
This commit is contained in:
Thomas Wood
2014-05-13 15:22:52 +01:00
parent c03d58595e
commit 17eb062661
4 changed files with 50 additions and 28 deletions
+22
View File
@@ -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));