summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-08-02 15:51:28 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-08-02 16:24:32 +0200
commit57caaf440520e397403d898e1d3f1d65ef7b79e2 (patch)
treee0f2f3f538a495edecdf0d07cfe42cb157bd253a
parentf45685d3373f6d755bf3cb4100f148715d669379 (diff)
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 <maarten.lankhorst@linux.intel.com> Reported-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/kms_pipe_crc_basic.c4
1 files changed, 3 insertions, 1 deletions
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);
}