Skip to content

Commit 80abc66

Browse files
committed
catch exceptions
1 parent 8aded8f commit 80abc66

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

run.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ def fuzz_function_exists?(file_path)
3232

3333
fork do
3434
Coverage.start(:all)
35-
load(file_path)
3635

37-
fuzz(Random.new.bytes(10))
36+
begin
37+
load(file_path)
38+
fuzz(Random.new.bytes(10))
39+
rescue => e
40+
puts "Encountered an exception: #{e}"
41+
exit
42+
end
3843

3944
p Coverage.result
4045
end

0 commit comments

Comments
 (0)