summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2016-12-22 18:42:04 -0200
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2017-01-04 16:04:47 -0200
commit90aed5f22e55a8f8652f2316900b19bf4f1bab77 (patch)
treef2f0c6f4615349d55e8673dee634f5cca40b4359
parentf42b26881fa013230a165495adfd3030d5c14cc1 (diff)
kms_frontbuffer_tracking: fix sink CRC assertion
If we already detected an error, don't try to assert the size of what we didn't read. In machines where the sink CRC is unreliable, this was failing tests where the sink CRC is not mandatory (FBC tests). With this change we won't fail anymore, we'll just print error messages saying that the sink CRC is unreliable. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r--tests/kms_frontbuffer_tracking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 343b1242..a8c3cb0d 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -943,8 +943,9 @@ static void get_sink_crc(sink_crc_t *crc, bool mandatory)
igt_skip("Sink CRC is unreliable on this machine. Try running this test again individually\n");
else
igt_info("Sink CRC is unreliable on this machine. Try running this test again individually\n");
+ } else {
+ igt_assert(rc == SINK_CRC_SIZE);
}
- igt_assert(rc == SINK_CRC_SIZE);
}
static bool sink_crc_equal(sink_crc_t *a, sink_crc_t *b)