 Chromium Code Reviews
 Chromium Code Reviews Issue 10409073:
  Fix harness for fuzzer to run for 100 iterations only.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 10409073:
  Fix harness for fuzzer to run for 100 iterations only.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: tools/fuzz-harness.sh | 
| diff --git a/tools/fuzz-harness.sh b/tools/fuzz-harness.sh | 
| index 25c6bef42169f2e74e37ecfcacb1562cf18f03c3..0dc41fe503d9513763ac8ff40db21256e9e70d1e 100755 | 
| --- a/tools/fuzz-harness.sh | 
| +++ b/tools/fuzz-harness.sh | 
| @@ -64,6 +64,21 @@ 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 > "$v8_root/tools/jsfunfuzz.patch" <<- EOF | 
| 
Jakob Kummerow
2012/05/23 07:49:55
nit: "<< EOF" is sufficient ("<<-" strips leading
 
Michael Starzinger
2012/05/23 07:55:59
Done.
 | 
| +--- 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 | 
| + patch -s -p0 -d "$v8_root" < "$v8_root/tools/jsfunfuzz.patch" | 
| fi | 
| flags='--debug-code --expose-gc --verify-gc' |