aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-13 13:30:44 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-13 13:30:44 -0800
commit36308403a7bb76edd288e1557dee4acb8f1e8d7b (patch)
tree981021b482497d5f21bb7f7bbb59470bed92792f /tests
parentc7cae7f3216f3e23f0da90e8d8b14d2ace63caa0 (diff)
disable headless test without spidermonkey
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 62e1b7e1..5b1aef35 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8324,6 +8324,8 @@ fscanfed: 10 - hello
assert crunch_time < os.stat('ship.crn').st_mtime, 'Crunch was changed'
def test_headless(self):
+ if SPIDERMONKEY_ENGINE not in JS_ENGINES: return self.skip('cannot run without spidermonkey due to node limitations (Uint8ClampedArray etc.)')
+
shutil.copyfile(path_from_root('tests', 'screenshot.png'), os.path.join(self.get_dir(), 'example.png'))
Popen(['python', EMCC, path_from_root('tests', 'sdl_canvas.c'), '-s', 'HEADLESS=1']).communicate()
output = run_js('a.out.js', engine=SPIDERMONKEY_ENGINE, stderr=PIPE)