summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-02-12 17:05:52 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-02-12 17:10:13 +0000
commit9eb0ab15b1ab09cd6a4e8666b6f488fad1dc36b4 (patch)
tree085bf844fc5337fc8f2d79b386a9838e98f203b5 /test
parent254f2f2f4b0a4deccec847e46086881c5a2681b1 (diff)
test/present: Look for MSC wraparound
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/present-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/present-test.c b/test/present-test.c
index aefed73a..ec8db6b3 100644
--- a/test/present-test.c
+++ b/test/present-test.c
@@ -165,7 +165,7 @@ static uint64_t check_msc(Display *dpy, Window win, void *q, uint64_t last_msc,
free(ev);
} while (!complete);
- if (msc < last_msc) {
+ if ((int64_t)(msc - last_msc) < 0) {
printf("Invalid MSC: was %llu, now %llu\n",
(long long)last_msc, (long long)msc);
}