diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-04-09 14:45:49 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-04-09 14:45:49 +0300 |
commit | f012ed96086198536f0ce1af4f8dda250d9b85b5 (patch) | |
tree | dfd6b0594772d524946ed9d7232206e6289c61ea /tests/test_other.py | |
parent | 4d0decb3b774d61f7f1bba7e74547d2c2d36fbfb (diff) |
Skip other.test_odin_validation if SpiderMonkey is not present, since it is a SpiderMonkey-specific test.
Diffstat (limited to 'tests/test_other.py')
-rw-r--r-- | tests/test_other.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index aae399c8..ce95681c 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -2572,6 +2572,7 @@ int main() assert p.returncode == 0, 'LLVM tests must pass with exit code 0' def test_odin_validation(self): + if not SPIDERMONKEY_ENGINE or SPIDERMONKEY_ENGINE not in JS_ENGINES: return self.skip('this test tests asm.js validation in SpiderMonkey') Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-O1'], stdout=PIPE, stderr=PIPE).communicate() output = run_js('a.out.js', stderr=PIPE, full_output=True, engine=SPIDERMONKEY_ENGINE) assert 'asm.js' in output, 'spidermonkey should mention asm.js compilation: ' + output |