diff --git a/test/unit/test_features.py b/test/unit/test_features.py index 35b65199a11..2bd3e74f6fc 100644 --- a/test/unit/test_features.py +++ b/test/unit/test_features.py @@ -422,14 +422,15 @@ def test_explicit_detect_features(self): opts=['-mvp', '--detect-features', '--enable-simd']) def test_emit_all_features(self): + temp_path = os.path.join(shared.options.out_dir, 'test_emit_all_features.wasm') p = shared.run_process(shared.WASM_OPT + - ['--emit-target-features', '-all', '-o', '-'], + ['--emit-target-features', '-all', '-o', temp_path], input="(module)", check=False, capture_output=True, decode_output=False) self.assertEqual(p.returncode, 0) p2 = shared.run_process(shared.WASM_OPT + - ['--print-features', '-o', os.devnull], - input=p.stdout, check=False, + ['--print-features', '-o', os.devnull, temp_path], + check=False, capture_output=True) self.assertEqual(p2.returncode, 0) self.assertEqual([