summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-01 18:21:08 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-01 18:30:22 +0100
commite14596a6d074c5e79343633bf3c21a2f2961269d (patch)
tree8602930b4b6724b76bf0080db514f2cfde1cdcd4 /lib/drmtest.c
parent9e21c255e74128a16ef5c2dd4b1903d1d2c417eb (diff)
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>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 576b4ab1..f76ef0f3 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -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);