tests: roll out igt_simple_init/igt_simple_main

Also use igt_skip a bit more to simplify some of the tests.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-12-10 10:18:32 +01:00
parent ce1a9f918e
commit dda85fb108
56 changed files with 89 additions and 169 deletions
+1 -6
View File
@@ -127,7 +127,7 @@ static void dumpit(void)
}
int main(int argc, char *argv[])
igt_simple_main
{
const int device = drm_get_card();
struct junk *junk = stuff;
@@ -135,9 +135,6 @@ int main(int argc, char *argv[])
igt_skip_on_simulation();
if (argc > 1)
verbose++;
/* Use drm_open_any to verify device existence */
fd = drm_open_any();
close(fd);
@@ -189,6 +186,4 @@ int main(int argc, char *argv[])
writeval(stuff[MIN].filp, origmin);
writeval(stuff[MAX].filp, origmax);
igt_success();
}