1
0
Fork 0

tests/cogl: Migrate texture no allocate test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 22:23:16 +02:00 committed by Marge Bot
parent d066fb5380
commit 94744061de
5 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-texture-no-allocate.c',
'test-pipeline-shader-state.c',
'test-texture-rg.c',
'test-fence.c',

View file

@ -76,8 +76,6 @@ main (int argc, char **argv)
ADD_TEST (test_fence, TEST_REQUIREMENT_FENCE, 0);
ADD_TEST (test_texture_no_allocate, 0, 0);
ADD_TEST (test_texture_rg, TEST_REQUIREMENT_TEXTURE_RG, 0);
g_printerr ("Unknown test name \"%s\"\n", argv[1]);

View file

@ -10,7 +10,6 @@ void test_gles2_context (void);
void test_gles2_context_fbo (void);
void test_gles2_context_copy_tex_image (void);
void test_fence (void);
void test_texture_no_allocate (void);
void test_texture_rg (void);
#endif /* COGL_TEST_DECLARATIONS_H */

View file

@ -35,6 +35,7 @@ cogl_tests = [
[ 'test-primitive-and-journal', [] ],
[ 'test-copy-replace-texture', [] ],
[ 'test-pipeline-cache-unrefs-texture', [] ],
[ 'test-texture-no-allocate', [] ],
]
cogl_test_conformance_includes = [

View file

@ -1,7 +1,6 @@
#include <cogl/cogl.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
/* Tests that the various texture types can be freed without being
* allocated */
@ -11,7 +10,7 @@
#define BIG_TEX_WIDTH 16384
#define BIG_TEX_HEIGHT 128
void
static void
test_texture_no_allocate (void)
{
uint8_t *tex_data;
@ -61,3 +60,7 @@ test_texture_no_allocate (void)
64, 64);
cogl_object_unref (texture_2d);
}
COGL_TEST_SUITE (
g_test_add_func ("/texture/no-allocate", test_texture_no_allocate);
)