diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-13 16:53:21 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-13 16:54:42 +0000 |
commit | 893e4ae2ff05368570d8d3c0fd803655322bcd9e (patch) | |
tree | e1b29f912c9071e80457eee4df7210c3b9dbf876 /tests/kms_pipe_crc_basic.c | |
parent | 57b4d846bb5372231cd48655ad95657d2f7283c4 (diff) |
igt/kms_pipe_crc_basic: Skip test before hang injection
If the pipe doesn't exist, don't bother submitting a hanging batch. Do a
basic check first before doing a crc read against a hanging batch.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index dd2ad3c3..b0622cfb 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -249,10 +249,14 @@ igt_main } igt_subtest_f("hang-read-crc-pipe-%c", 'A'+i) { - igt_hang_t hang = - igt_hang_ring(data.drm_fd, I915_EXEC_RENDER); + igt_hang_t hang; + + test_read_crc(&data, i, 0); + + hang = igt_hang_ring(data.drm_fd, I915_EXEC_RENDER); test_read_crc(&data, i, 0); igt_post_hang_ring(data.drm_fd, hang); + test_read_crc(&data, i, 0); } } |