Skip to content
  • Daniel Vetter's avatar
    tests: use drmtest_skip() in caching ioctl helpers · 7553ad6e
    Daniel Vetter authored
    
    
    This way we can rip out all the skip handling from the test control flow,
    and additionally (by using drmtest_retval()) even get correct exit codes.
    
    The only tricky part is that when we only want ot skip parts of a test
    (like for gem_pread and gem_pwrite) we need to split out those parts as
    subtests. But no addition of control-flow is required, the set/longjmp
    magic in the helpers all makes it happen.
    
    Also we make extensive use of the behaviour of drmtest_skip to skip
    all subsequent subtests if it is called outside of a subtest. This allows
    us to re-flatten the control flow a lot.
    
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    7553ad6e