From 1eaf9e5f63c124198ac2ee67ef0c3d991a351ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 6 Jun 2020 00:25:55 +0200 Subject: [PATCH] tests/clutter/timeline-interpolate: Maximize error tolerance Simply to make it less flaky. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1291 --- src/tests/clutter/conform/timeline-interpolate.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/clutter/conform/timeline-interpolate.c b/src/tests/clutter/conform/timeline-interpolate.c index aa3556b59..db17b6784 100644 --- a/src/tests/clutter/conform/timeline-interpolate.c +++ b/src/tests/clutter/conform/timeline-interpolate.c @@ -15,10 +15,11 @@ /* We are at the mercy of the system scheduler so this * may not be a very reliable tolerance. * - * It's set as very tolerable as otherwise CI, which are - * very prone to not get CPU time scheduled, tend to often fail. + * It's set as very tolerable (1 ms shorter than the frame interval) as + * otherwise CI, which are very prone to not get CPU time scheduled, tend to + * often fail. */ -#define TEST_ERROR_TOLERANCE 150 +#define TEST_ERROR_TOLERANCE ((TEST_TIMELINE_FPS / 4) - 1) typedef struct _TestState {