summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorTim Gore <tim.gore@intel.com>2014-09-29 13:34:30 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-29 16:57:49 +0200
commitf33fa71481caa308f141797033cd2bc6479630fc (patch)
tree4b493ccb19a71e9e6455b9030e5e4f5edffa9df2 /lib/igt_core.h
parent32a0308e2da1ed5871e21ca81822fc0c8aa73f9e (diff)
lib/igt_core: make single/simple tests use igt_exit
Currently tests that use igt_simple_main will simply call "exit()" if they pass, making it difficult to ensure that any required cleanup is done. At present this is not an issue, but it will be when I submit a patch to turn off the lowmemorykiller for all tests. Signed-off-by: Tim Gore <tim.gore@intel.com> [danvet: Also update api docs.] Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index d74cbf9d..974a2fb3 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -188,7 +188,7 @@ void igt_simple_init_parse_opts(int argc, char **argv,
int main(int argc, char **argv) { \
igt_simple_init(argc, argv); \
igt_tokencat(__real_main, __LINE__)(); \
- exit(0); \
+ igt_exit(); \
} \
static void igt_tokencat(__real_main, __LINE__)(void) \