Skip to content

Commit fcaeb5c

Browse files
Try fix
1 parent 45f8dd9 commit fcaeb5c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/unit/test_features.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,15 @@ def test_explicit_detect_features(self):
422422
opts=['-mvp', '--detect-features', '--enable-simd'])
423423

424424
def test_emit_all_features(self):
425+
temp_path = os.path.join(shared.options.out_dir, 'test_emit_all_features.wasm')
425426
p = shared.run_process(shared.WASM_OPT +
426-
['--emit-target-features', '-all', '-o', '-'],
427+
['--emit-target-features', '-all', '-o', temp_path],
427428
input="(module)", check=False,
428429
capture_output=True, decode_output=False)
429430
self.assertEqual(p.returncode, 0)
430431
p2 = shared.run_process(shared.WASM_OPT +
431-
['--print-features', '-o', os.devnull, '-'],
432-
input=p.stdout, check=False,
432+
['--print-features', '-o', os.devnull, temp_path],
433+
check=False,
433434
capture_output=True)
434435
self.assertEqual(p2.returncode, 0)
435436
self.assertEqual([

0 commit comments

Comments
 (0)