diff options
author | Sam Clegg <sbc@chromium.org> | 2022-11-03 15:06:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 22:06:32 +0000 |
commit | 8388a33e84c0730f5a7c7e89bd089ad7c9db9455 (patch) | |
tree | a4991df7be22c02204208704af25172c2932bfa0 /test/unit | |
parent | bf1782368dc6fee2d5fb9f4dd0cada2ca04ccb30 (diff) | |
download | binaryen-8388a33e84c0730f5a7c7e89bd089ad7c9db9455.tar.gz binaryen-8388a33e84c0730f5a7c7e89bd089ad7c9db9455.tar.bz2 binaryen-8388a33e84c0730f5a7c7e89bd089ad7c9db9455.zip |
Update default features to match new llvm defaults (#5212)
See: https://reviews.llvm.org/D125728
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/utils.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/unit/utils.py b/test/unit/utils.py index b0391afad..6fe2d4fe0 100644 --- a/test/unit/utils.py +++ b/test/unit/utils.py @@ -10,12 +10,11 @@ class BinaryenTestCase(unittest.TestCase): filename) def roundtrip(self, filename, opts=[], debug=True): + opts = ['--mvp-features'] + opts if debug: - opts = opts + ['-g'] + opts.append('-g') path = self.input_path(filename) - p = shared.run_process(shared.WASM_OPT + ['-o', 'a.wasm', path] + - opts) - self.assertEqual(p.returncode, 0) + shared.run_process(shared.WASM_OPT + ['-o', 'a.wasm', path] + opts) with open(path, 'rb') as f: with open('a.wasm', 'rb') as g: self.assertEqual(g.read(), f.read()) @@ -24,15 +23,14 @@ class BinaryenTestCase(unittest.TestCase): path = self.input_path(filename) p = shared.run_process(shared.WASM_OPT + ['--print', '-o', os.devnull, path], - check=False, capture_output=True) - self.assertEqual(p.returncode, 0) + capture_output=True) self.assertEqual(p.stderr, '') return p.stdout def check_features(self, filename, features, opts=[]): path = self.input_path(filename) cmd = shared.WASM_OPT + \ - ['--print-features', '-o', os.devnull, path] + opts + ['--mvp-features', '--print-features', '-o', os.devnull, path] + opts p = shared.run_process(cmd, check=False, capture_output=True) self.assertEqual(p.returncode, 0) self.assertEqual(p.stderr, '') |