summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2019-04-04 13:33:00 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-04-24 10:27:44 +0200
commit7d46f6e4c94bbf8c30c0910880503571f272898c (patch)
tree83cd2141fca2fdf728fd8bd2421b137b74a12fb9
parent5f20969a0b0ef94e4312c1016d11b8694d823838 (diff)
tests/kms_flip: Improve asserts for expired vblank tests
Step 1 in debugging: Actually understand what's going wrong. References: https://bugs.freedesktop.org/show_bug.cgi?id=102887 Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Cc: "Peres, Martin" <martin.peres@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
-rwxr-xr-xtests/kms_flip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 6287ce14..8c17c8da 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -681,7 +681,7 @@ static unsigned int run_test_step(struct test_output *o)
TEST_VBLANK_BLOCK, o->pipe, exp_seq,
0, &reply));
igt_assert(gettime_us() - start < 500);
- igt_assert(reply.sequence == exp_seq);
+ igt_assert_eq(reply.sequence, exp_seq);
igt_assert(timercmp(&reply.ts, &o->flip_state.last_ts, ==));
}