mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-17 19:32:58 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user