lib: add igt_main macro
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 31 Oct 2013 15:23:26 +0000 (16:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 1 Nov 2013 20:10:59 +0000 (21:10 +0100)
commit071e9ca1ca4424ba35edec0246918efdd0528d76
tree7606357a8f0116d17f2e30a74b274796ba83f3d8
parent223a61e12e119d96484ed05c563d1781fd613a4e
lib: add igt_main macro

In the past new testcases with subtest often forgot to add the call to
igt_exit at the end of their main() function. That is now caught with
a bit more obnoxious asserts, but it's still a nuissance.

This little igt_main macro takes care of that (and also of calling the
subtest machinery initialization code correctly).

If no one objects I'll roll this out for all the simple cases (i.e.
those tests that don't have additional argv parsing on top of the
subtest machinery).

v2: Roll it out across the board.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
40 files changed:
lib/drmtest.h
tests/debugfs_pipe_crc.c
tests/gem_basic.c
tests/gem_caching.c
tests/gem_close_race.c
tests/gem_concurrent_blit.c
tests/gem_cs_tlb.c
tests/gem_ctx_bad_exec.c
tests/gem_dummy_reloc_loop.c
tests/gem_evict_alignment.c
tests/gem_evict_everything.c
tests/gem_exec_bad_domains.c
tests/gem_exec_faulting_reloc.c
tests/gem_exec_nop.c
tests/gem_fence_thrash.c
tests/gem_fenced_exec_thrash.c
tests/gem_flink.c
tests/gem_flink_race.c
tests/gem_mmap.c
tests/gem_mmap_gtt.c
tests/gem_partial_pwrite_pread.c
tests/gem_persistent_relocs.c
tests/gem_pipe_control_store_loop.c
tests/gem_pread_after_blit.c
tests/gem_readwrite.c
tests/gem_reloc_overflow.c
tests/gem_reloc_vs_gpu.c
tests/gem_ringfill.c
tests/gem_set_tiling_vs_blt.c
tests/gem_storedw_batches_loop.c
tests/gem_suspend.c
tests/gem_tiled_partial_pwrite_pread.c
tests/gem_write_read_ring_switch.c
tests/kms_addfb.c
tests/kms_cursor_crc.c
tests/kms_render.c
tests/prime_nv_api.c
tests/prime_nv_pcopy.c
tests/prime_nv_test.c
tests/prime_self_import.c