Comment # 3
on bug 108891
from Chris Wilson
diff --git a/lib/igt_core.c b/lib/igt_core.c index e0989f53..bd600762 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -1116,30 +1116,28 @@ void igt_fail(int exitcode) if (in_atexit_handler) _exit(IGT_EXIT_FAILURE); - if (!failed_one) - igt_exitcode = exitcode; - - failed_one = true; - /* Silent exit, parent will do the yelling. */ if (test_child) exit(exitcode); + if (in_fixture) { + skip_subtests_henceforth = FAIL; + __igt_fixture_end(); + } + _igt_log_buffer_dump(); + if (!failed_one) { + igt_exitcode = exitcode; + failed_one = true; + } + if (in_subtest) { if (exitcode == IGT_EXIT_TIMEOUT) exit_subtest("TIMEOUT"); else exit_subtest("FAIL"); } else { - assert(igt_can_fail()); - - if (in_fixture) { - skip_subtests_henceforth = FAIL; - __igt_fixture_end(); - } - igt_exit(); } }
You are receiving this mail because:
- You are the assignee for the bug.
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel