lib/drmtest: Scream harder when igt_exit isn't called for subtest tests

We really need this since otherwise the magic return value handling
for running testcases with piglit (or on QA's validation
infrastructure) doesn't work properly.

We need to be careful though to only install this check on success.

See also the previous commits to sprinkle igt_exit() calls over all
the tests that missed it.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-10-29 11:29:00 +01:00
parent 780807099a
commit 5d24a67c1b

View File

@ -812,8 +812,6 @@ int igt_subtest_init_parse_opts(int argc, char **argv,
case 'l': case 'l':
if (!run_single_subtest) if (!run_single_subtest)
list_subtests = true; list_subtests = true;
else
igt_install_exit_handler(check_igt_exit);
break; break;
case 'r': case 'r':
if (!list_subtests) if (!list_subtests)
@ -842,6 +840,8 @@ int igt_subtest_init_parse_opts(int argc, char **argv,
} }
} }
igt_install_exit_handler(check_igt_exit);
out: out:
return ret; return ret;
} }