Skip to content

Commit 96da2f2

Browse files
committed
Revise other.test_pthread_print_override_modularize test
1 parent e6054f7 commit 96da2f2

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/test_other.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7237,19 +7237,8 @@ def test_modularize_instantiation_error(self):
72377237

72387238
@crossplatform
72397239
@node_pthreads
7240+
@also_with_wasmfs
72407241
def test_pthread_print_override_modularize(self):
7241-
self.set_setting('EXPORT_NAME', 'Test')
7242-
self.set_setting('PROXY_TO_PTHREAD')
7243-
self.set_setting('EXIT_RUNTIME')
7244-
self.set_setting('MODULARIZE')
7245-
create_file('main.c', '''
7246-
#include <emscripten/console.h>
7247-
7248-
int main() {
7249-
emscripten_out("hello, world!");
7250-
return 0;
7251-
}
7252-
''')
72537242
create_file('main.js', '''
72547243
const Test = require('./test.js');
72557244

@@ -7262,7 +7251,7 @@ def test_pthread_print_override_modularize(self):
72627251
main();
72637252
''')
72647253

7265-
self.emcc('main.c', output_filename='test.js')
7254+
self.emcc(test_file('hello_world.c'), ['-sEXPORT_NAME=Test', '-sPROXY_TO_PTHREAD', '-sEXIT_RUNTIME', '-sMODULARIZE'], output_filename='test.js')
72667255
output = self.run_js('main.js')
72677256
self.assertNotContained('hello, world!', output)
72687257
self.assertContained('hello, earth!', output)

0 commit comments

Comments
 (0)