Fixed typos in fuzzer scripts/readme.
Test: fuzzer
Change-Id: I937d8dac66a19b903d15702de51e9adfc1a8e160
diff --git a/tools/jfuzz/README.md b/tools/jfuzz/README.md
index 1991c97..eb0e71f 100644
--- a/tools/jfuzz/README.md
+++ b/tools/jfuzz/README.md
@@ -98,7 +98,7 @@
--num_inputs : number of JFuzz programs to generate
--device : target device serial number (passed to adb -s)
--dexer=DEXER : use either dx, d8, or jack to obtain dex files
- --debug_info : include debugging info
+ --debug_info : include debugging info
Background
==========
diff --git a/tools/jfuzz/jfuzz.cc b/tools/jfuzz/jfuzz.cc
index a6034c8..60c6275 100644
--- a/tools/jfuzz/jfuzz.cc
+++ b/tools/jfuzz/jfuzz.cc
@@ -1210,7 +1210,7 @@
// Emit a static void method.
void emitStaticNopMethod() {
- fputs(" public static void nop() {}\n", out_);
+ fputs(" public static void nop() {}\n\n", out_);
}
// Emit program header. Emit command line options in the comments.
diff --git a/tools/jfuzz/run_jfuzz_test.py b/tools/jfuzz/run_jfuzz_test.py
index 2b56767..34180d9 100755
--- a/tools/jfuzz/run_jfuzz_test.py
+++ b/tools/jfuzz/run_jfuzz_test.py
@@ -551,7 +551,7 @@
wrapped_args = ['--jfuzz_arg={0}'.format(opt) for opt in jfuzz_args]
repro_cmd_str = (os.path.basename(__file__) +
' --num_tests=1 --dexer=' + self._dexer +
- (' --debug_info' if self._debug_info else '') +
+ (' --debug_info ' if self._debug_info else ' ') +
' '.join(wrapped_args))
comment = 'jfuzz {0}\nReproduce test:\n{1}\nReproduce divergence:\n{2}\n'.format(
jfuzz_ver, jfuzz_cmd_str, repro_cmd_str)