[mutter] tests/cogl: Migrate journal test
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/cogl: Migrate journal test
- Date: Mon, 8 Aug 2022 22:13:11 +0000 (UTC)
commit 559c9c87954136b4e3a451eb795476e05fd42489
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Aug 4 20:04:36 2022 +0200
tests/cogl: Migrate journal test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
cogl/tests/conform/meson.build | 1 -
cogl/tests/conform/test-conform-main.c | 1 -
cogl/tests/conform/test-declarations.h | 1 -
src/tests/cogl/conform/meson.build | 1 +
{cogl/tests => src/tests/cogl}/conform/test-journal.c | 9 ++++++---
5 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/cogl/tests/conform/meson.build b/cogl/tests/conform/meson.build
index 19f5355ab2..0cf1021d46 100644
--- a/cogl/tests/conform/meson.build
+++ b/cogl/tests/conform/meson.build
@@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
- 'test-journal.c',
'test-primitive.c',
'test-sparse-pipeline.c',
'test-read-texture-formats.c',
diff --git a/cogl/tests/conform/test-conform-main.c b/cogl/tests/conform/test-conform-main.c
index 43fddfd748..ae1b24aad6 100644
--- a/cogl/tests/conform/test-conform-main.c
+++ b/cogl/tests/conform/test-conform-main.c
@@ -80,7 +80,6 @@ main (int argc, char **argv)
ADD_TEST (test_primitive, 0, 0);
- ADD_TEST (test_journal_unref_flush, 0, 0);
ADD_TEST (test_framebuffer_get_bits,
TEST_REQUIREMENT_GL,
0);
diff --git a/cogl/tests/conform/test-declarations.h b/cogl/tests/conform/test-declarations.h
index a6ea2d8710..4a31ad05ff 100644
--- a/cogl/tests/conform/test-declarations.h
+++ b/cogl/tests/conform/test-declarations.h
@@ -13,7 +13,6 @@ void test_read_texture_formats (void);
void test_write_texture_formats (void);
void test_alpha_textures (void);
void test_primitive (void);
-void test_journal_unref_flush (void);
void test_framebuffer_get_bits (void);
void test_point_size (void);
void test_point_size_attribute (void);
diff --git a/src/tests/cogl/conform/meson.build b/src/tests/cogl/conform/meson.build
index 4c01621ed8..7c02b443aa 100644
--- a/src/tests/cogl/conform/meson.build
+++ b/src/tests/cogl/conform/meson.build
@@ -15,6 +15,7 @@ cogl_tests = [
'test-sub-texture',
'test-custom-attributes',
'test-offscreen',
+ 'test-journal',
]
cogl_test_conformance_includes = [
diff --git a/cogl/tests/conform/test-journal.c b/src/tests/cogl/conform/test-journal.c
similarity index 90%
rename from cogl/tests/conform/test-journal.c
rename to src/tests/cogl/conform/test-journal.c
index ec93e528fc..3b16ee3a85 100644
--- a/cogl/tests/conform/test-journal.c
+++ b/src/tests/cogl/conform/test-journal.c
@@ -3,10 +3,9 @@
#include <stdio.h>
#include <string.h>
-#include "test-declarations.h"
-#include "test-utils.h"
+#include "tests/cogl-test-utils.h"
-void
+static void
test_journal_unref_flush (void)
{
CoglTexture2D *texture;
@@ -44,3 +43,7 @@ test_journal_unref_flush (void)
cogl_object_unref (texture);
}
+
+COGL_TEST_SUITE (
+ g_test_add_func ("/journal/unref-flush", test_journal_unref_flush);
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]