From 57caaf440520e397403d898e1d3f1d65ef7b79e2 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Thu, 2 Aug 2018 15:51:28 +0200 Subject: kms_pipe_crc_basic: Skip when hitting -EIO -EIO is returned when the crtc is not active, in which case we skip the test because the parsing of the parameter in crtc-0/crc/control is not done. Signed-off-by: Maarten Lankhorst Reported-by: Chris Wilson Reviewed-by: Chris Wilson --- tests/kms_pipe_crc_basic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 920eb6e0..852f1697 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -49,8 +49,10 @@ static struct { static void test_bad_source(data_t *data) { errno = 0; - if (igt_sysfs_set(data->debugfs, "crtc-0/crc/control", "foo")) + if (igt_sysfs_set(data->debugfs, "crtc-0/crc/control", "foo")) { igt_assert(openat(data->debugfs, "crtc-0/crc/data", O_WRONLY) == -1); + igt_skip_on(errno == EIO); + } igt_assert_eq(errno, EINVAL); } -- cgit v1.2.3