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
@@ -11,6 +11,7 @@ check_PROGRAMS = \
igt_invalid_subtest_name \
igt_segfault \
igt_assert \
igt_exit_handler \
$(NULL)
check_SCRIPTS = \