@@ -2903,7 +2903,6 @@ def test_glfw3_hi_dpi_aware(self):
29032903
29042904 @requires_graphics_hardware
29052905 @also_with_wasm2js
2906- @no_wasm64 ('SDL2 + wasm64' )
29072906 def test_sdl2_image (self ):
29082907 # load an image file, get pixel data. Also O2 coverage for --preload-file
29092908 shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.jpg' )
@@ -2918,7 +2917,6 @@ def test_sdl2_image(self):
29182917 '-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--use-preload-plugins'
29192918 ])
29202919
2921- @no_wasm64 ('SDL2 + wasm64' )
29222920 @requires_graphics_hardware
29232921 def test_sdl2_image_jpeg (self ):
29242922 shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.jpeg' )
@@ -2928,7 +2926,6 @@ def test_sdl2_image_jpeg(self):
29282926 '-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--use-preload-plugins'
29292927 ])
29302928
2931- @no_wasm64 ('SDL2 + wasm64' )
29322929 @also_with_wasmfs
29332930 @requires_graphics_hardware
29342931 def test_sdl2_image_formats (self ):
@@ -2945,7 +2942,6 @@ def test_sdl2_image_formats(self):
29452942 '--use-port=sdl2' , '--use-port=sdl2_image:formats=jpg'
29462943 ])
29472944
2948- @no_wasm64 ('SDL2 + wasm64' )
29492945 def test_sdl2_key (self ):
29502946 create_file ('pre.js' , '''
29512947 function keydown(keyCode, code) {
@@ -2967,7 +2963,6 @@ def test_sdl2_key(self):
29672963
29682964 self .btest_exit ('test_sdl2_key.c' , 37182145 , args = ['-sUSE_SDL=2' , '--pre-js' , 'pre.js' ])
29692965
2970- @no_wasm64 ('SDL2 + wasm64' )
29712966 def test_sdl2_text (self ):
29722967 create_file ('pre.js' , '''
29732968 Module.postRun = () => {
@@ -2986,7 +2981,6 @@ def test_sdl2_text(self):
29862981
29872982 self .btest_exit ('test_sdl2_text.c' , args = ['--pre-js' , 'pre.js' , '-sEXPORTED_FUNCTIONS=_main,_one' , '-sUSE_SDL=2' ])
29882983
2989- @no_wasm64 ('SDL2 + wasm64' )
29902984 @requires_graphics_hardware
29912985 def test_sdl2_mouse (self ):
29922986 create_file ('pre.js' , '''
@@ -3018,7 +3012,6 @@ def test_sdl2_mouse(self):
30183012
30193013 self .btest_exit ('test_sdl2_mouse.c' , args = ['-O2' , '--minify=0' , '--pre-js' , 'pre.js' , '-sUSE_SDL=2' ])
30203014
3021- @no_wasm64 ('SDL2 + wasm64' )
30223015 @requires_graphics_hardware
30233016 def test_sdl2_mouse_offsets (self ):
30243017 create_file ('pre.js' , '''
@@ -3096,38 +3089,31 @@ def test_sdl2_mouse_offsets(self):
30963089 self .compile_btest ('browser/test_sdl2_mouse.c' , ['-DTEST_SDL_MOUSE_OFFSETS=1' , '-O2' , '--minify=0' , '-o' , 'sdl2_mouse.js' , '--pre-js' , 'pre.js' , '-sUSE_SDL=2' , '-sEXIT_RUNTIME' ])
30973090 self .run_browser ('page.html' , '' , '/report_result?exit:0' )
30983091
3099- @no_wasm64 ('SDL2 + wasm64' )
31003092 @requires_threads
31013093 def test_sdl2_threads (self ):
31023094 self .btest_exit ('test_sdl2_threads.c' , args = ['-pthread' , '-sUSE_SDL=2' , '-sPROXY_TO_PTHREAD' ])
31033095
3104- @no_wasm64 ('SDL2 + wasm64' )
31053096 @requires_graphics_hardware
31063097 def test_sdl2_glshader (self ):
31073098 self .reftest ('test_sdl2_glshader.c' , 'test_sdl_glshader.png' , args = ['-sUSE_SDL=2' , '-O2' , '--closure=1' , '-g1' , '-sLEGACY_GL_EMULATION' ])
31083099 self .reftest ('test_sdl2_glshader.c' , 'test_sdl_glshader.png' , args = ['-sUSE_SDL=2' , '-O2' , '-sLEGACY_GL_EMULATION' ], also_proxied = True ) # XXX closure fails on proxy
31093100
3110- @no_wasm64 ('SDL2 + wasm64' )
31113101 @requires_graphics_hardware
31123102 def test_sdl2_canvas_blank (self ):
31133103 self .reftest ('test_sdl2_canvas_blank.c' , 'test_sdl_canvas_blank.png' , args = ['-sUSE_SDL=2' ])
31143104
3115- @no_wasm64 ('SDL2 + wasm64' )
31163105 @requires_graphics_hardware
31173106 def test_sdl2_canvas_palette (self ):
31183107 self .reftest ('test_sdl2_canvas_palette.c' , 'test_sdl_canvas_palette.png' , args = ['-sUSE_SDL=2' ])
31193108
3120- @no_wasm64 ('SDL2 + wasm64' )
31213109 @requires_graphics_hardware
31223110 def test_sdl2_canvas_twice (self ):
31233111 self .reftest ('test_sdl2_canvas_twice.c' , 'test_sdl_canvas_twice.png' , args = ['-sUSE_SDL=2' ])
31243112
3125- @no_wasm64 ('SDL2 + wasm64' )
31263113 @requires_graphics_hardware
31273114 def test_sdl2_gfx (self ):
31283115 self .reftest ('test_sdl2_gfx.cpp' , 'test_sdl2_gfx.png' , args = ['-sUSE_SDL=2' , '-sUSE_SDL_GFX=2' ], reference_slack = 2 )
31293116
3130- @no_wasm64 ('SDL2 + wasm64' )
31313117 @requires_graphics_hardware
31323118 def test_sdl2_canvas_palette_2 (self ):
31333119 create_file ('args-r.js' , '''
@@ -3146,32 +3132,26 @@ def test_sdl2_canvas_palette_2(self):
31463132 self .reftest ('test_sdl2_canvas_palette_2.c' , 'test_sdl_canvas_palette_g.png' , args = ['-sUSE_SDL=2' , '--pre-js' , 'args-g.js' ])
31473133 self .reftest ('test_sdl2_canvas_palette_2.c' , 'test_sdl_canvas_palette_b.png' , args = ['-sUSE_SDL=2' , '--pre-js' , 'args-b.js' ])
31483134
3149- @no_wasm64 ('SDL2 + wasm64' )
31503135 def test_sdl2_swsurface (self ):
31513136 self .btest_exit ('test_sdl2_swsurface.c' , args = ['-sUSE_SDL=2' ])
31523137
3153- @no_wasm64 ('SDL2 + wasm64' )
31543138 @requires_graphics_hardware
31553139 def test_sdl2_image_prepare (self ):
31563140 # load an image file, get pixel data.
31573141 shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.not' )
31583142 self .reftest ('test_sdl2_image_prepare.c' , 'screenshot.jpg' , args = ['--preload-file' , 'screenshot.not' , '-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' ], manually_trigger_reftest = True )
31593143
3160- @no_wasm64 ('SDL2 + wasm64' )
31613144 @requires_graphics_hardware
31623145 def test_sdl2_image_prepare_data (self ):
31633146 # load an image file, get pixel data.
31643147 shutil .copyfile (test_file ('screenshot.jpg' ), 'screenshot.not' )
31653148 self .reftest ('test_sdl2_image_prepare_data.c' , 'screenshot.jpg' , args = ['--preload-file' , 'screenshot.not' , '-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' ], manually_trigger_reftest = True )
31663149
3167- @no_wasm64 ('SDL2 + wasm64' )
3168- @no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
31693150 @requires_graphics_hardware
31703151 def test_sdl2_canvas_proxy (self ):
31713152 create_file ('data.txt' , 'datum' )
31723153 self .reftest ('test_sdl2_canvas_proxy.c' , 'test_sdl2_canvas.png' , args = ['-sUSE_SDL=2' , '--proxy-to-worker' , '--preload-file' , 'data.txt' , '-sGL_TESTING' ], manual_reference = True , post_build = self .post_manual_reftest )
31733154
3174- @no_wasm64 ('SDL2 + wasm64' )
31753155 def test_sdl2_pumpevents (self ):
31763156 # key events should be detected using SDL_PumpEvents
31773157 create_file ('pre.js' , '''
@@ -3182,92 +3162,77 @@ def test_sdl2_pumpevents(self):
31823162 ''' )
31833163 self .btest_exit ('test_sdl2_pumpevents.c' , args = ['--pre-js' , 'pre.js' , '-sUSE_SDL=2' ])
31843164
3185- @no_wasm64 ('SDL2 + wasm64' )
31863165 def test_sdl2_timer (self ):
31873166 self .btest_exit ('test_sdl2_timer.c' , args = ['-sUSE_SDL=2' ])
31883167
3189- @no_wasm64 ('SDL2 + wasm64' )
31903168 def test_sdl2_canvas_size (self ):
31913169 self .btest_exit ('test_sdl2_canvas_size.c' , args = ['-sUSE_SDL=2' ])
31923170
3193- @no_wasm64 ('SDL2 + wasm64' )
31943171 @requires_graphics_hardware
31953172 def test_sdl2_gl_read (self ):
31963173 # SDL, OpenGL, readPixels
31973174 self .btest_exit ('test_sdl2_gl_read.c' , args = ['-sUSE_SDL=2' ])
31983175
3199- @no_wasm64 ( 'SDL2 + wasm64 ' )
3176+ @no_4gb ( 'https://github.com/libsdl-org/SDL/issues/9052 ' )
32003177 @no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
32013178 @requires_graphics_hardware
32023179 def test_sdl2_glmatrixmode_texture (self ):
32033180 self .reftest ('test_sdl2_glmatrixmode_texture.c' , 'test_sdl2_glmatrixmode_texture.png' ,
32043181 args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
32053182
3206- @no_wasm64 ('SDL2 + wasm64' )
32073183 @requires_graphics_hardware
32083184 def test_sdl2_gldrawelements (self ):
32093185 self .reftest ('test_sdl2_gldrawelements.c' , 'test_sdl2_gldrawelements.png' ,
32103186 args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
32113187
3212- @no_wasm64 ('SDL2 + wasm64' )
32133188 @requires_graphics_hardware
32143189 def test_sdl2_glclipplane_gllighting (self ):
32153190 self .reftest ('test_sdl2_glclipplane_gllighting.c' , 'test_sdl2_glclipplane_gllighting.png' ,
32163191 args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
32173192
3218- @no_wasm64 ('SDL2 + wasm64' )
32193193 @requires_graphics_hardware
32203194 def test_sdl2_glalphatest (self ):
32213195 self .reftest ('test_sdl2_glalphatest.c' , 'test_sdl2_glalphatest.png' ,
32223196 args = ['-sLEGACY_GL_EMULATION' , '-sUSE_SDL=2' ])
32233197
3224- @no_wasm64 ('SDL2 + wasm64' )
32253198 @requires_graphics_hardware
32263199 def test_sdl2_fog_simple (self ):
32273200 shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
32283201 self .reftest ('test_sdl2_fog_simple.c' , 'screenshot-fog-simple.png' ,
32293202 args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '-O2' , '--minify=0' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
32303203
3231- @no_wasm64 ('SDL2 + wasm64' )
32323204 @requires_graphics_hardware
32333205 def test_sdl2_fog_negative (self ):
32343206 shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
32353207 self .reftest ('test_sdl2_fog_negative.c' , 'screenshot-fog-negative.png' ,
32363208 args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
32373209
3238- @no_wasm64 ('SDL2 + wasm64' )
32393210 @requires_graphics_hardware
32403211 def test_sdl2_fog_density (self ):
32413212 shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
32423213 self .reftest ('test_sdl2_fog_density.c' , 'screenshot-fog-density.png' ,
32433214 args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
32443215
3245- @no_wasm64 ('SDL2 + wasm64' )
32463216 @requires_graphics_hardware
32473217 def test_sdl2_fog_exp2 (self ):
32483218 shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
32493219 self .reftest ('test_sdl2_fog_exp2.c' , 'screenshot-fog-exp2.png' ,
32503220 args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
32513221
3252- @no_wasm64 ('SDL2 + wasm64' )
32533222 @requires_graphics_hardware
32543223 def test_sdl2_fog_linear (self ):
32553224 shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
32563225 self .reftest ('test_sdl2_fog_linear.c' , 'screenshot-fog-linear.png' , reference_slack = 1 ,
32573226 args = ['-sUSE_SDL=2' , '-sUSE_SDL_IMAGE=2' , '--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '--use-preload-plugins' ])
32583227
3259- @no_wasm64 ('SDL2 + wasm64' )
32603228 def test_sdl2_unwasteful (self ):
32613229 self .btest_exit ('test_sdl2_unwasteful.cpp' , args = ['-sUSE_SDL=2' , '-O1' ])
32623230
3263- @no_wasm64 ('SDL2 + wasm64' )
32643231 @no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
3232+ @no_4gb ('https://github.com/libsdl-org/SDL/issues/9052' )
32653233 def test_sdl2_canvas_write (self ):
32663234 self .btest_exit ('test_sdl2_canvas_write.cpp' , args = ['-sUSE_SDL=2' ])
32673235
3268- @no_wasm64 ('SDL2 + wasm64' )
3269- @no_2gb ('https://github.com/libsdl-org/SDL/issues/9052' )
3270- @requires_graphics_hardware
32713236 def test_sdl2_gl_frames_swap (self ):
32723237 def post_build ():
32733238 self .post_manual_reftest ()
@@ -3277,40 +3242,33 @@ def post_build():
32773242 create_file ('reftest.js' , reftest2 )
32783243 self .reftest ('test_sdl2_gl_frames_swap.c' , 'test_sdl2_gl_frames_swap.png' , args = ['--proxy-to-worker' , '-sGL_TESTING' , '-sUSE_SDL=2' ], manual_reference = True , post_build = post_build )
32793244
3280- @no_wasm64 ('SDL2 + wasm64' )
32813245 @requires_graphics_hardware
32823246 def test_sdl2_ttf (self ):
32833247 shutil .copy2 (test_file ('freetype/LiberationSansBold.ttf' ), self .get_dir ())
32843248 self .reftest ('test_sdl2_ttf.c' , 'test_sdl2_ttf.png' ,
32853249 args = ['-O2' , '-sUSE_SDL=2' , '-sUSE_SDL_TTF=2' , '--embed-file' , 'LiberationSansBold.ttf' ])
32863250
3287- @no_wasm64 ('SDL2 + wasm64' )
32883251 @requires_graphics_hardware
32893252 def test_sdl2_ttf_rtl (self ):
32903253 shutil .copy2 (test_file ('third_party/notofont/NotoNaskhArabic-Regular.ttf' ), self .get_dir ())
32913254 self .reftest ('test_sdl2_ttf_rtl.c' , 'test_sdl2_ttf_rtl.png' ,
32923255 args = ['-O2' , '-sUSE_SDL=2' , '-sUSE_SDL_TTF=2' , '--embed-file' , 'NotoNaskhArabic-Regular.ttf' ])
32933256
3294- @no_wasm64 ('SDL2 + wasm64' )
32953257 def test_sdl2_custom_cursor (self ):
32963258 shutil .copyfile (test_file ('cursor.bmp' ), 'cursor.bmp' )
32973259 self .btest_exit ('test_sdl2_custom_cursor.c' , args = ['--preload-file' , 'cursor.bmp' , '-sUSE_SDL=2' ])
32983260
3299- @no_wasm64 ('SDL2 + wasm64' )
33003261 def test_sdl2_misc (self ):
33013262 self .btest_exit ('test_sdl2_misc.c' , args = ['-sUSE_SDL=2' ])
33023263
3303- @no_wasm64 ('SDL2 + wasm64' )
33043264 def test_sdl2_misc_main_module (self ):
33053265 self .btest_exit ('test_sdl2_misc.c' , args = ['-sUSE_SDL=2' , '-sMAIN_MODULE' ])
33063266
3307- @no_wasm64 ('SDL2 + wasm64' )
33083267 def test_sdl2_misc_via_object (self ):
33093268 self .emcc (test_file ('browser/test_sdl2_misc.c' ), ['-c' , '-sUSE_SDL=2' , '-o' , 'test.o' ])
33103269 self .compile_btest ('test.o' , ['-sEXIT_RUNTIME' , '-sUSE_SDL=2' , '-o' , 'test.html' ])
33113270 self .run_browser ('test.html' , '/report_result?exit:0' )
33123271
3313- @no_wasm64 ('SDL2 + wasm64' )
33143272 @parameterized ({
33153273 '' : (['-sUSE_SDL=2' , '-sUSE_SDL_MIXER=2' ],),
33163274 'dash_l' : (['-lSDL2' , '-lSDL2_mixer' ],),
@@ -3320,7 +3278,6 @@ def test_sdl2_mixer_wav(self, flags):
33203278 shutil .copyfile (test_file ('sounds/the_entertainer.wav' ), 'sound.wav' )
33213279 self .btest_exit ('test_sdl2_mixer_wav.c' , args = ['--preload-file' , 'sound.wav' ] + flags )
33223280
3323- @no_wasm64 ('SDL2 + wasm64' )
33243281 @parameterized ({
33253282 'wav' : ([], '0' , 'the_entertainer.wav' ),
33263283 'ogg' : (['ogg' ], 'MIX_INIT_OGG' , 'alarmvictory_1.ogg' ),
0 commit comments