From cdad308a4bbc96bd7feb7ab57eb4f261c08dd1dd Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 2 Oct 2012 16:09:00 +0200 Subject: [PATCH] tests/flip_test: don't complain about timestamps in the future those can happen due to the scanline vblank timestamp adjuster ... --- tests/flip_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/flip_test.c b/tests/flip_test.c index d8abb712..8fd6ac68 100644 --- a/tests/flip_test.c +++ b/tests/flip_test.c @@ -161,7 +161,7 @@ static void page_flip_handler(int fd, unsigned int frame, unsigned int sec, timersub(&pageflip_ts, &now, &diff); - if (diff.tv_sec > 0 || diff.tv_usec > 2000) { + if (diff.tv_sec > 0 || (diff.tv_sec > 0 && diff.tv_usec > 2000)) { fprintf(stderr, "pageflip timestamp delayed for too long: %is, %iusec\n", (int) diff.tv_sec, (int) diff.tv_usec); exit(5);