• Daniel Vetter's avatar
    lib: add igt_main macro · 071e9ca1
    Daniel Vetter authored
    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's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    071e9ca1
Name
Last commit
Last update
assembler Loading commit data...
benchmarks Loading commit data...
debugger Loading commit data...
demos Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
overlay Loading commit data...
scripts Loading commit data...
shaders/ps Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
Android.mk Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...