Make fuzz output the words success for a 'clean exit'
authorkjlubick <kjlubick@google.com>
Wed, 27 Jan 2016 19:34:36 +0000 (11:34 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 27 Jan 2016 19:34:36 +0000 (11:34 -0800)
The analysis looks for "Success" to determine if the fuzz should be considered
a clean exit or not.  It classifies clean exists as "grey" fuzzes, i.e. fixed.

TBR=mtklein@google.com
BUG=skia:4438
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1646603002

Review URL: https://codereview.chromium.org/1646603002

fuzz/fuzz.cpp

index d879f29..042b3ca 100644 (file)
@@ -66,6 +66,7 @@ int fuzz_api(SkData* bytes) {
             SkDebugf("Fuzzing %s...\n", fuzzable.name);
             Fuzz fuzz(bytes);
             fuzzable.fn(&fuzz);
+            SkDebugf("Success!");
             return 0;
         }
     }
@@ -153,7 +154,7 @@ int fuzz_skp(SkData* bytes) {
     }
     SkCanvas canvas(bitmap);
     canvas.drawPicture(pic);
-    SkDebugf("Decoded and rendered an SkPicture!\n");
+    SkDebugf("Success! Decoded and rendered an SkPicture!\n");
     dump_png(bitmap);
     return 0;
 }