diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2016-12-22 18:42:04 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2017-01-04 16:04:47 -0200 |
commit | 90aed5f22e55a8f8652f2316900b19bf4f1bab77 (patch) | |
tree | f2f0c6f4615349d55e8673dee634f5cca40b4359 /tests | |
parent | f42b26881fa013230a165495adfd3030d5c14cc1 (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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_frontbuffer_tracking.c | 3 |
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) |