aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/fuzz/csmith_driver.py2
-rw-r--r--tools/shared.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/fuzz/csmith_driver.py b/tests/fuzz/csmith_driver.py
index 76d646dd..09f1c249 100755
--- a/tests/fuzz/csmith_driver.py
+++ b/tests/fuzz/csmith_driver.py
@@ -138,7 +138,7 @@ while 1:
# This is ok. Try in secondary JS engine too
if opts != '-O0' and engine2 and normal:
try:
- js2 = shared.run_js(filename + '.js', stderr=PIPE, engine=engine2, full_output=True, check_timeout=True)
+ js2 = shared.run_js(filename + '.js', stderr=PIPE, engine=engine2 + ['-w'], full_output=True, check_timeout=True)
except:
print 'failed to run in secondary', js2
break
diff --git a/tools/shared.py b/tools/shared.py
index 8a27e966..1adbdfaa 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -709,13 +709,14 @@ else:
# Engine tweaks
try:
+ SPIDERMONKEY_ENGINE = listify(SPIDERMONKEY_ENGINE)
if 'gcparam' not in str(SPIDERMONKEY_ENGINE):
new_spidermonkey = SPIDERMONKEY_ENGINE
- if type(SPIDERMONKEY_ENGINE) is str:
- new_spidermonkey = [SPIDERMONKEY_ENGINE]
new_spidermonkey += ['-e', "gcparam('maxBytes', 1024*1024*1024);"] # Our very large files need lots of gc heap
JS_ENGINES = map(lambda x: x if x != SPIDERMONKEY_ENGINE else new_spidermonkey, JS_ENGINES)
SPIDERMONKEY_ENGINE = new_spidermonkey
+ if '-w' not in SPIDERMONKEY_ENGINE:
+ SPIDERMONKEY_ENGINE += ['-w']
except NameError:
pass