Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Nov 20, 2018
1 parent b41c880 commit 5602340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def is_emterpreter(self):
return self.get_setting('EMTERPRETIFY')

def is_wasm(self):
return not self.get_setting('WASM') or self.is_wasm_backend()
return self.is_wasm_backend() or self.get_setting('WASM') != 0

def is_wasm_backend(self):
return self.get_setting('WASM_BACKEND')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7903,7 +7903,7 @@ def test_binaryen_trap_mode(self):
if not self.is_wasm():
self.skipTest('wasm test')
TRAP_OUTPUTS = ('trap', 'RuntimeError')
default = self.get_setting('BINARYEN_TRAP_MODE')
default = 'allow'
print('default is', default)
for mode in ['js', 'clamp', 'allow', '']:
if mode == 'js' and self.is_wasm_backend():
Expand Down

0 comments on commit 5602340

Please sign in to comment.