Skip to content

Commit 7424943

Browse files
Fix harness for fuzzer to run for 100 iterations only.
[email protected] TEST=tools/fuzz-harness.sh Review URL: https://chromiumcodereview.appspot.com/10409073 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@11629 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
1 parent 405414c commit 7424943

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tools/fuzz-harness.sh

+14
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ jsfunfuzz_dir="$v8_root/tools/jsfunfuzz"
6464
if [ ! -d "$jsfunfuzz_dir" ]; then
6565
echo "Unpacking into $jsfunfuzz_dir ..."
6666
unzip "$jsfunfuzz_file" -d "$jsfunfuzz_dir" || exit 1
67+
echo "Patching runner ..."
68+
cat << EOF | patch -s -p0 -d "$v8_root"
69+
--- tools/jsfunfuzz/jsfunfuzz/multi_timed_run.py~
70+
+++ tools/jsfunfuzz/jsfunfuzz/multi_timed_run.py
71+
@@ -125,7 +125,7 @@
72+
73+
def many_timed_runs():
74+
iteration = 0
75+
- while True:
76+
+ while iteration < 100:
77+
iteration += 1
78+
logfilename = "w%d" % iteration
79+
one_timed_run(logfilename)
80+
EOF
6781
fi
6882

6983
flags='--debug-code --expose-gc --verify-gc'

0 commit comments

Comments
 (0)