summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/igt_simulation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/igt_simulation.c b/tests/igt_simulation.c
index 13b2da9c..e5889590 100644
--- a/tests/igt_simulation.c
+++ b/tests/igt_simulation.c
@@ -65,7 +65,7 @@ static int do_fork(void)
igt_skip_on_simulation();
- exit(0);
+ igt_exit();
} else {
if (list_subtests)
igt_subtest_init(2, argv_list);