tests/cogl: Migrate read texture formats test

This test fails on gl and gl3, but not on gles2; mark is at such.

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

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-read-texture-formats.c',
'test-write-texture-formats.c',
'test-point-size.c',
'test-point-size-attribute.c',

View File

@ -68,7 +68,6 @@ main (int argc, char **argv)
UNPORTED_TEST (test_texture_rectangle);
UNPORTED_TEST (test_texture_pixmap_x11);
ADD_TEST (test_texture_get_set_data, 0, 0);
ADD_TEST (test_read_texture_formats, 0, TEST_KNOWN_FAILURE);
ADD_TEST (test_write_texture_formats, 0, 0);
ADD_TEST (test_alpha_textures, 0, 0);

View File

@ -8,7 +8,6 @@ void test_backface_culling (void);
void test_layer_remove (void);
void test_npot_texture (void);
void test_texture_get_set_data (void);
void test_read_texture_formats (void);
void test_write_texture_formats (void);
void test_alpha_textures (void);
void test_framebuffer_get_bits (void);

View File

@ -18,6 +18,7 @@ cogl_tests = [
[ 'test-journal', [] ],
[ 'test-primitive', [] ],
[ 'test-sparse-pipeline', [] ],
[ 'test-read-texture-formats', ['gl', 'gl3'] ],
]
cogl_test_conformance_includes = [

View File

@ -1,8 +1,7 @@
#include <cogl/cogl.h>
#include <stdarg.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
/*
* This tests reading back an RGBA texture in all of the available
@ -159,7 +158,7 @@ test_read_int (CoglTexture2D *tex_2d,
g_free (expected_value_str);
}
void
static void
test_read_texture_formats (void)
{
CoglTexture2D *tex_2d;
@ -221,3 +220,7 @@ test_read_texture_formats (void)
if (cogl_test_verbose ())
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/read-texture-formats", test_read_texture_formats);
)