From d742f9331c956caffd92156145c0359e6406b05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 25 Mar 2020 16:37:56 +0100 Subject: [PATCH] tests/clutter: Port timeline-rewind to current test suite https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289 --- src/tests/clutter/conform/meson.build | 1 + src/tests/clutter/conform/timeline-rewind.c | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tests/clutter/conform/meson.build b/src/tests/clutter/conform/meson.build index 19fcf1c34..4484380ee 100644 --- a/src/tests/clutter/conform/meson.build +++ b/src/tests/clutter/conform/meson.build @@ -36,6 +36,7 @@ clutter_conform_tests_general_tests = [ 'timeline', 'timeline-interpolate', 'timeline-progress', + 'timeline-rewind', 'units', ] diff --git a/src/tests/clutter/conform/timeline-rewind.c b/src/tests/clutter/conform/timeline-rewind.c index 0263649ac..ca3d1096e 100644 --- a/src/tests/clutter/conform/timeline-rewind.c +++ b/src/tests/clutter/conform/timeline-rewind.c @@ -1,8 +1,9 @@ +#define CLUTTER_DISABLE_DEPRECATION_WARNINGS #include #include #include -#include "test-conform-common.h" +#include "tests/clutter-test-utils.h" #define TEST_TIMELINE_DURATION 500 #define TEST_WATCHDOG_KICK_IN_SECONDS 10 @@ -66,7 +67,7 @@ new_frame_cb (ClutterTimeline *timeline, } } -void +static void timeline_rewind (void) { TestState state; @@ -90,3 +91,7 @@ timeline_rewind (void) g_object_unref (state.timeline); } + +CLUTTER_TEST_SUITE ( + CLUTTER_TEST_UNIT ("/timeline/rewind", timeline_rewind) +)