test/present: Look for MSC wraparound

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-02-12 17:05:52 +00:00
parent 254f2f2f4b
commit 9eb0ab15b1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}