lib: Unit test for exit handler

Checks that
- exit handlers are run only once, even when registered multiple
  times.
- run in reverse order
- actually run for all ways a test could exit.

This is prep work to extend exit handlers to also work in a subtest
aware way.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
Daniel Vetter
2016-02-18 13:37:16 +01:00
parent 78f2ea3bc8
commit 93824f0cd0
3 changed files with 130 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
# Please keep sorted alphabetically
igt_assert
igt_fork_helper
igt_exit_handler
igt_invalid_subtest_name
igt_list_only
igt_no_exit