(self)
| 12297 | self.assertContained('Hello, world!', self.run_js('a.out.js')) |
| 12298 | |
| 12299 | def test_shared_flag(self): |
| 12300 | # Test that `-shared` flag causes wasm dylib generation |
| 12301 | self.run_process([EMCC, '-shared', '-fPIC', test_file('hello_world.c'), '-o', 'out.foo']) |
| 12302 | self.assertIsWasmDylib('out.foo') |
| 12303 | |
| 12304 | # Test that `-shared` causes wasm dylib generation warning even if given executable output name. |
| 12305 | err = self.run_process([EMCC, '-shared', '-fPIC', test_file('hello_world.c'), '-o', 'out.wasm'], stderr=PIPE).stderr |
| 12306 | self.assertNotContained('warning: -shared/-r used with executable output suffix', err) |
| 12307 | self.assertIsWasmDylib('out.wasm') |
| 12308 | |
| 12309 | @no_windows('windows does not support shbang syntax') |
| 12310 | @with_env_modify({'EMMAKEN_JUST_CONFIGURE': '1'}) |
nothing calls this directly
no test coverage detected