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>
case 'l':
if (!run_single_subtest)
list_subtests = true;
- else
- igt_install_exit_handler(check_igt_exit);
break;
case 'r':
if (!list_subtests)
}
}
+ igt_install_exit_handler(check_igt_exit);
+
out:
return ret;
}