diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-02 20:07:32 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-02 20:07:32 -0800 |
commit | 626eaf848b28f7937698e3d63bed0c9a9b71a30f (patch) | |
tree | 18fdea82f26d78f91e767cd6e718e3e099e0f377 /tests | |
parent | dc5fcfb4de85cb73062008e1ad76c9e7dd0b0efe (diff) |
continue looking in fuzzer after a fail
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/fuzz/csmith_driver.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/fuzz/csmith_driver.py b/tests/fuzz/csmith_driver.py index 75ad6e00..3fa58db6 100755 --- a/tests/fuzz/csmith_driver.py +++ b/tests/fuzz/csmith_driver.py @@ -26,6 +26,8 @@ tried = 0 notes = { 'invalid': 0, 'unaligned': 0, 'embug': 0 } +fails = 0 + while 1: print 'Tried %d, notes: %s' % (tried, notes) tried += 1 @@ -83,7 +85,9 @@ while 1: if not ok: print "EMSCRIPTEN BUG" notes['embug'] += 1 - break + fails += 1 + shutil.copyfile('fuzzcode.c', 'newfail%d.c' % fails) + continue #if not ok: # try: # finally, try with safe heap. if that is triggered, this is nonportable code almost certainly # try_js(['-s', 'SAFE_HEAP=1']) |