Skip to content

Commit

Permalink
add fuzzing for assertions and MEM_INIT_METHOD == 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Jun 16, 2015
1 parent 4e9da10 commit 549953a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/fuzz/csmith_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ def try_js(args=[]):
js_args += ['-s', 'EMTERPRETIFY_WHITELIST=["_main"]'] # the opposite direction
if random.random() < 0.5:
js_args += ['-s', 'EMTERPRETIFY_ASYNC=1']
if random.random() < 0.5:
js_args += ["--memory-init-file", "0", "-s", "MEM_INIT_METHOD=2"]
if random.random() < 0.5:
js_args += ['-s', 'ASSERTIONS=1']
print '(compile)', ' '.join(js_args)
open(fullname, 'a').write('\n// ' + ' '.join(js_args) + '\n\n')
try:
Expand Down

0 comments on commit 549953a

Please sign in to comment.