mutter/src/tests/clutter/conform
Jonas Ådahl 6f30764320 tests/clutter/timeline-interpolate: Rework test to be less flaky
This more or less rewrites this test so that it explicitly tests the
"interpolation" when a timeline loops, i.e. that if something occupies
the thread when a timeline was supposed to have looped, we end up in the
right place "in the middle" of the next timeline cycle.

The test more or less does this:

 * Start a 3 second looping timeline
 * Sleep so that we're in the middle of the first cycle
 * Sleep again so that we end up in the middle of the next cycle

The semantics checked are that we see the following frames:

 * The first frame with timestamp 0
 * The second frame in the middle of the first cycle (timestamp ~= 1.5
   sceonds)
 * The third frame in the end of the first cycle (timestamp == 3.0
   seconds)
 * The fourth frame, first in the second cycle, with timestamp ~= 1.5
   seconds)

This means we can increase the "grace period" to the double (from 0.5 s
to 1 s), while at the same time decrease the time spent running the test
(from 10 s to 4.5 s). This should hopefully make the test less flaky,
especially in slower runners, e.g. aarch64.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1751>
2021-03-08 14:37:00 +00:00
..
scripts clutter/timeline: Deprecate timelines without an actor or frame clock 2020-07-02 19:36:50 +02:00
actor-clone.c clutter: Paint views with individual frame clocks 2020-07-02 19:36:51 +02:00
actor-destroy.c tests: Replace ClutterRectangle with ClutterActor 2020-06-27 13:35:46 +00:00
actor-graph.c tests/clutter/conform: Default to print test logs 2020-06-05 21:39:26 +00:00
actor-invariants.c tests/clutter/conform: Make sure to destroy created actors 2020-08-13 17:51:56 +02:00
actor-iter.c tests/clutter/conform: Default to print test logs 2020-06-05 21:39:26 +00:00
actor-layout.c tests/clutter/conform: Make sure to destroy created actors 2020-08-13 17:51:56 +02:00
actor-meta.c tests: Move clutter-test-utils.[ch] to src/tests 2019-08-24 08:59:08 +00:00
actor-offscreen-redirect.c tests: Use ClutterStage "after-paint" instead of ClutterActor "paint" 2020-10-23 22:06:58 +02:00
actor-paint-opacity.c tests/clutter/conform: Make sure to destroy created actors 2020-08-13 17:51:56 +02:00
actor-pick.c tests/clutter: Always use stage from backend 2020-08-13 17:51:56 +02:00
actor-pivot-point.c tests/conform/actor-pivot-point: Show stage before allocating 2020-10-20 15:27:43 +00:00
actor-shader-effect.c clutter: Remove CLUTTER_ENABLE_EXPERIMENTAL_API 2021-02-05 17:05:19 +00:00
actor-size.c tests/clutter/conform: Default to print test logs 2020-06-05 21:39:26 +00:00
binding-pool.c clutter, core: Stop using the Cogl framebuffer stack 2019-12-03 19:02:14 +00:00
cally-text.c tests/clutter: Always use stage from backend 2020-08-13 17:51:56 +02:00
color.c tests/clutter/conform: Default to print test logs 2020-06-05 21:39:26 +00:00
frame-clock-timeline.c clutter/frame-info: Add sequence 2021-03-08 09:48:11 +00:00
frame-clock.c clutter/frame-info: Add sequence 2021-03-08 09:48:11 +00:00
interval.c tests/clutter/conform: Default to print test logs 2020-06-05 21:39:26 +00:00
meson.build tests/clutter: Always use stage from backend 2020-08-13 17:51:56 +02:00
path.c tests/clutter/conform: Default to print test logs 2020-06-05 21:39:26 +00:00
script-parser.c tests: Replace ClutterRectangle with ClutterActor 2020-06-27 13:35:46 +00:00
text-cache.c tests/clutter: Always use stage from backend 2020-08-13 17:51:56 +02:00
text.c clutter/actor: Always return a resource scale in get_resource_scale() 2020-06-30 13:15:53 +00:00
texture-fbo.c tests/clutter: Always use stage from backend 2020-08-13 17:51:56 +02:00
timeline-interpolate.c tests/clutter/timeline-interpolate: Rework test to be less flaky 2021-03-08 14:37:00 +00:00
timeline-progress.c clutter/timeline: Deprecate timelines without an actor or frame clock 2020-07-02 19:36:50 +02:00
timeline-rewind.c tests/clutter: Always use stage from backend 2020-08-13 17:51:56 +02:00
timeline.c tests/clutter/timeline: Always print progress to stderr 2020-11-09 16:12:35 +00:00
units.c tests: Move clutter-test-utils.[ch] to src/tests 2019-08-24 08:59:08 +00:00