[mutter] tests/clutter: Port timeline-rewind to current test suite



commit d742f9331c956caffd92156145c0359e6406b05d
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Wed Mar 25 16:37:56 2020 +0100

    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 19fcf1c347..4484380ee5 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 0263649ac8..ca3d1096e9 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 <stdlib.h>
 #include <glib.h>
 #include <clutter/clutter.h>
 
-#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)
+)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]