diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-14 17:59:25 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-14 18:00:07 +0200 |
commit | 62cd793c37135339788fff7ddf99f5039b0282ae (patch) | |
tree | ef32c32dd2b556066948fe33495dfa4d1c366f06 | |
parent | 78f79e4e95b571b0ee6f407aaea6dc7c0f864985 (diff) |
tests/kms_flip: Fix vblank ts check
Oops, fumbled that in the conversion.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | tests/kms_flip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index d2adc02c..9783c7ed 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -535,7 +535,7 @@ static void check_state(struct test_output *o, struct event_state *es) timersub(&es->current_ts, &es->current_received_ts, &diff); if (!analog_tv_connector(o)) { - igt_assert_f(diff.tv_sec <= 0 && (diff.tv_sec == 0 && diff.tv_usec <= 2000), + igt_assert_f(diff.tv_sec < 0 || (diff.tv_sec == 0 && diff.tv_usec <= 2000), "%s ts delayed for too long: %is, %iusec\n", es->name, (int)diff.tv_sec, (int)diff.tv_usec); |