@@ -1644,12 +1644,11 @@ def test_chunked_synchronous_xhr(self):
16441644 'pthreads' : (['-pthread' ],),
16451645 })
16461646 def test_glgears (self , args ):
1647- self .reftest ('hello_world_gles.c' , 'gears.png' , reference_slack = 3 , cflags = ['-DHAVE_BUILTIN_SINCOS' , '- lGL' , '-lglut' ] + args )
1647+ self .reftest ('hello_world_gles.c' , 'gears.png' , reference_slack = 3 , cflags = ['-lGL' , '-lglut' ] + args )
16481648
16491649 @requires_graphics_hardware
16501650 def test_glgears_long (self ):
1651- args = ['-DHAVE_BUILTIN_SINCOS' , '-DLONGTEST' , '-lGL' , '-lglut' , '-DANIMATE' ]
1652- self .btest ('hello_world_gles.c' , expected = '0' , cflags = args )
1651+ self .btest ('hello_world_gles.c' , expected = '0' , cflags = ['-DLONGTEST' , '-lGL' , '-lglut' , '-DANIMATE' ])
16531652
16541653 @requires_graphics_hardware
16551654 @parameterized ({
@@ -1660,8 +1659,7 @@ def test_glgears_long(self):
16601659 @flaky ('https://github.com/emscripten-core/emscripten/issues/25329' )
16611660 def test_glgears_animation (self , filename ):
16621661 copy_asset ('browser/fake_events.js' )
1663- args = ['-o' , 'something.html' ,
1664- '-DHAVE_BUILTIN_SINCOS' , '-sGL_TESTING' , '-lGL' , '-lglut' ,
1662+ args = ['-o' , 'something.html' , '-sGL_TESTING' , '-lGL' , '-lglut' ,
16651663 '--shell-file' , test_file ('hello_world_gles_shell.html' )]
16661664 if 'full' in filename :
16671665 args += ['-sFULL_ES2' ]
@@ -1670,14 +1668,13 @@ def test_glgears_animation(self, filename):
16701668
16711669 @requires_graphics_hardware
16721670 def test_fulles2_sdlproc (self ):
1673- self .btest_exit ('full_es2_sdlproc.c' , cflags = ['-sGL_TESTING' , '-DHAVE_BUILTIN_SINCOS' , '- sFULL_ES2' , '-lGL' , '-lSDL' , '-lglut' , '-sGL_ENABLE_GET_PROC_ADDRESS' , '-Wno-int-conversion' ])
1671+ self .btest_exit ('full_es2_sdlproc.c' , cflags = ['-sGL_TESTING' , '-sFULL_ES2' , '-lGL' , '-lSDL' , '-lglut' , '-sGL_ENABLE_GET_PROC_ADDRESS' , '-Wno-int-conversion' ])
16741672
16751673 @requires_graphics_hardware
16761674 @flaky ('https://github.com/emscripten-core/emscripten/issues/25329' )
16771675 def test_glgears_deriv (self ):
1678- self .reftest ('hello_world_gles_deriv.c' , 'gears.png' , reference_slack = 2 ,
1679- cflags = ['-DHAVE_BUILTIN_SINCOS' , '-lGL' , '-lglut' ])
1680- assert 'gl-matrix' not in read_file ('test.html' ), 'Should not include glMatrix when not needed'
1676+ self .reftest ('hello_world_gles_deriv.c' , 'gears.png' , reference_slack = 2 , cflags = ['-lGL' , '-lglut' ])
1677+ self .assertNotIn ('gl-matrix' , read_file ('test.html' ), 'Should not include glMatrix when not needed' )
16811678
16821679 @requires_graphics_hardware
16831680 @parameterized ({
0 commit comments