From 80abc6681ea70567a6b5972da3ae5bc9bd256b82 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Fri, 31 Aug 2018 21:55:52 -0500 Subject: [PATCH] catch exceptions --- run.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/run.rb b/run.rb index a74d0d6..666a888 100644 --- a/run.rb +++ b/run.rb @@ -32,9 +32,14 @@ end fork do Coverage.start(:all) - load(file_path) - fuzz(Random.new.bytes(10)) + begin + load(file_path) + fuzz(Random.new.bytes(10)) + rescue => e + puts "Encountered an exception: #{e}" + exit + end p Coverage.result end -- 2.51.2