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>
This commit is contained in:
Tim Gore
2014-09-29 13:34:30 +01:00
committed by Daniel Vetter
parent 32a0308e2d
commit f33fa71481
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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);