tests/cogl: Migrate journal test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 20:04:36 +02:00 committed by Marge Bot
parent 0c6eb86698
commit 559c9c8795
5 changed files with 7 additions and 6 deletions

View File

@ -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',

View File

@ -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);

View File

@ -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);

View File

@ -15,6 +15,7 @@ cogl_tests = [
'test-sub-texture',
'test-custom-attributes',
'test-offscreen',
'test-journal',
]
cogl_test_conformance_includes = [

View File

@ -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);
)