Codebase list emscripten / afb81be
fix patch 1007 and test exclude lists Jonas Smedegaard 3 years ago
2 changed file(s) with 17 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
4444 run_test()
4545 building.emcc(path_from_root('tests', 'module', 'test_stdin.c'),
4646 - ['-O2', '--closure', '1'], output_filename='out.js')
47 + ['-O2', '--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1')], output_filename='out.js')
47 + ['-O2', '--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1'], output_filename='out.js')
4848 run_test()
4949
5050 def test_ungetc_fscanf(self):
8787 '-s', 'DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[$dynCall]',
8888 '-s', 'EXPORTED_FUNCTIONS=[_test_return64]', '-o', 'test.js', '-O2',
8989 - '--closure', '1', '-g1', '-s', 'WASM_ASYNC_COMPILATION=0'] + args)
90 + '--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1'), '-g1', '-s', 'WASM_ASYNC_COMPILATION=0'] + args)
90 + '--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1', '-g1', '-s', 'WASM_ASYNC_COMPILATION=0'] + args)
9191
9292 # Simple test program to load the test.js binding library and call the binding to the
9393 # C function returning the 64 bit long.
158158 'O3': (['-O3'],), # noqa
159159 - 'closure': (['--closure', '1'],), # noqa
160160 - 'closure_O3': (['--closure', '1', '-O3'],), # noqa
161 + 'closure': (['--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1')],), # noqa
162 + 'closure_O3': (['--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1'), '-O3'],), # noqa
161 + 'closure': (['--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1'],), # noqa
162 + 'closure_O3': (['--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1', '-O3'],), # noqa
163163 })
164164 def test_EM_ASM_ES6(self, args):
165165 create_test_file('src.cpp', r'''
191191 - 'O2_closure': (False, ['-O2', '--closure', '1']), # noqa
192192 - 'O2_closure_emit': (True, ['-O2', '-s', 'EMIT_EMSCRIPTEN_LICENSE', '--closure', '1']), # noqa
193193 - 'O2_closure_js_emit': (True, ['-O2', '-s', 'EMIT_EMSCRIPTEN_LICENSE', '--closure', '1', '-s', 'WASM=0']), # noqa
194 + 'O2_closure': (False, ['-O2', '--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1')]), # noqa
195 + 'O2_closure_emit': (True, ['-O2', '-s', 'EMIT_EMSCRIPTEN_LICENSE', '--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1')]), # noqa
196 + 'O2_closure_js_emit': (True, ['-O2', '-s', 'EMIT_EMSCRIPTEN_LICENSE', '--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1'), '-s', 'WASM=0']), # noqa
194 + 'O2_closure': (False, ['-O2', '--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1']), # noqa
195 + 'O2_closure_emit': (True, ['-O2', '-s', 'EMIT_EMSCRIPTEN_LICENSE', '--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1']), # noqa
196 + 'O2_closure_js_emit': (True, ['-O2', '-s', 'EMIT_EMSCRIPTEN_LICENSE', '--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1', '-s', 'WASM=0']), # noqa
197197 })
198198 def test_emscripten_license(self, expect_license, args):
199199 # fastcomp does not support the new license flag
214214 '--output_eol', 'linux',
215215 '-Oz',
216216 - '--closure', '1',
217 + '--closure', ('0' if EMTEST_LACKS_CLOSURE_COMPILER else '1'),
217 + '--closure', '0' if EMTEST_LACKS_CLOSURE_COMPILER else '1',
218218 '-DNDEBUG',
219219 '-ffast-math']
220220
141141 test_exceptions_uncaught_count \
142142 test_exceptions_virtual_inheritance \
143143 FAILS_wasm0 += \
144 test_exceptions_refcount \
144 test_exceptions_refcount
145 FAILS_other += \
145146 test_locale_wrong \
146147 test_metadce_cxx_except \
147148 test_metadce_cxx_mangle \
153154 # JS subprocess failed (/usr/bin/nodejs test_nodefs_home.js): 1. Output:
154155 # exception thrown: Error: No such file or directory,Error
155156 FAILS_wasm += \
156 test_fs_nodefs_home \
157 test_fs_nodefs_home
157158
158159 # requires bugfix for error: undefined symbol: ...
159160 FAILS_wasm += \
179180 test_exception_settings \
180181 test_f_exception \
181182 test_fignore_exceptions
183
184 # requires bugfix for FileNotFoundError:
185 # [Errno 2] No such file or directory: 'emcc'
186 FAILS_other += \
187 test_output_to_nowhere \
188 test_scons
182189
183190 # requires bugfix for FileNotFoundError:
184191 # [Errno 2] No such file or directory: '/usr/share/emscripten/emcmake'