• Chris Wilson's avatar
    lib/core: Don't leak dummyloads between subtests · ea7015f1
    Chris Wilson authored
    If a test fails or skips early, it may not clean up after itself. In
    lieu of having a framework for test deconstructors, hook
    igt_terminate_spin_batches() into exit_subtest() itself so that we don't
    allow a recursive batch from an earlier test to leak into the next and
    cause an unexpected GPU hang.
    
    Similarly, we also want to terminate the dummyload as the first step in
    our atexit handlers (currently it is at the start of the last step) as
    some atexit handlers may be unwittingly exposed to dummyloads and so
    cause another wait on GPU hang.
    
    We trust that the core already distinguishes correctly between the
    principal test process and its children.
    Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Reviewed-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
    ea7015f1
Name
Last commit
Last update
assembler Loading commit data...
benchmarks Loading commit data...
debugger Loading commit data...
docs Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
overlay Loading commit data...
scripts Loading commit data...
shaders Loading commit data...
tests Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING Loading commit data...
COPYING Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
meson.build Loading commit data...
meson.sh Loading commit data...