From 596d7127d79038f5e00e3c9854e46f11625f3f6f Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Wed, 23 May 2012 07:55:38 +0000 Subject: [PATCH] Fix harness for fuzzer to run for 100 iterations only. R=jkummerow@chromium.org TEST=tools/fuzz-harness.sh Review URL: https://chromiumcodereview.appspot.com/10409073 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11629 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- tools/fuzz-harness.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/fuzz-harness.sh b/tools/fuzz-harness.sh index 25c6bef..efbf864 100755 --- a/tools/fuzz-harness.sh +++ b/tools/fuzz-harness.sh @@ -64,6 +64,20 @@ jsfunfuzz_dir="$v8_root/tools/jsfunfuzz" if [ ! -d "$jsfunfuzz_dir" ]; then echo "Unpacking into $jsfunfuzz_dir ..." unzip "$jsfunfuzz_file" -d "$jsfunfuzz_dir" || exit 1 + echo "Patching runner ..." + cat << EOF | patch -s -p0 -d "$v8_root" +--- tools/jsfunfuzz/jsfunfuzz/multi_timed_run.py~ ++++ tools/jsfunfuzz/jsfunfuzz/multi_timed_run.py +@@ -125,7 +125,7 @@ + + def many_timed_runs(): + iteration = 0 +- while True: ++ while iteration < 100: + iteration += 1 + logfilename = "w%d" % iteration + one_timed_run(logfilename) +EOF fi flags='--debug-code --expose-gc --verify-gc' -- 2.7.4