Skip to content

Commit e17c3ce

Browse files
Fuzzing: Skip iterations if the target program is busy
1 parent c8e0c89 commit e17c3ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

FuzzTesting/differential.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ async def run_single(lane, i, program):
7777
except subprocess.CalledProcessError:
7878
# If shrinking fails, just dump the original testcase
7979
crash_file = dump_crash_wasm(wasm_file, "diff")
80+
except OSError as e:
81+
import errno
82+
if e.errno == errno.ETXTBSY:
83+
# Skip this iteration if the target program is busy
84+
# (e.g., being rebuilt by another process)
85+
pass
86+
else:
87+
raise e
8088

8189
except TimeoutError:
8290
timeout_file = os.path.join(fail_dir, f"timeout-{i}.wasm")

0 commit comments

Comments
 (0)