tests/cogl: Migrate no-gl header test

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

View File

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [ cogl_test_conformance_sources = [
'test-conform-main.c', 'test-conform-main.c',
'test-no-gl-header.c',
'test-version.c', 'test-version.c',
'test-layer-remove.c', 'test-layer-remove.c',
'test-alpha-test.c', 'test-alpha-test.c',

View File

@ -24,6 +24,7 @@ cogl_tests = [
[ 'test-point-size-attribute', [] ], [ 'test-point-size-attribute', [] ],
[ 'test-point-sprite', [] ], [ 'test-point-sprite', [] ],
[ 'test-point-sprite-known-failure', ['gl', 'gl3', 'gles2'] ], [ 'test-point-sprite-known-failure', ['gl', 'gl3', 'gles2'] ],
[ 'test-no-gl-header', [] ],
] ]
cogl_test_conformance_includes = [ cogl_test_conformance_includes = [

View File

@ -7,10 +7,9 @@
#error "Including cogl.h shouldn't be including any GL headers" #error "Including cogl.h shouldn't be including any GL headers"
#endif #endif
void test_no_gl_header (void); int
main (int argc,
void char **argv)
test_no_gl_header (void)
{ {
return EXIT_SUCCESS;
} }