lib: fix igt_exit assert when only listing subtests.

Ooops. Reported by Paulo. Also add a new testcase for make check to
make sure this actually works.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-11-01 18:21:08 +01:00
parent 9e21c255e7
commit e14596a6d0
4 changed files with 46 additions and 1 deletions
+2 -1
View File
@@ -1034,6 +1034,8 @@ void __igt_fail_assert(int exitcode, const char *file,
void igt_exit(void)
{
igt_exit_called = true;
if (igt_only_list_subtests())
exit(0);
@@ -1042,7 +1044,6 @@ void igt_exit(void)
/* Calling this without calling one of the above is a failure */
assert(skipped_one || succeeded_one || failed_one);
igt_exit_called = true;
if (failed_one)
exit(igt_exitcode);