From: kjlubick Date: Wed, 27 Jan 2016 19:34:36 +0000 (-0800) Subject: Make fuzz output the words success for a 'clean exit' X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~129^2~2368 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b6aa21817ce600d280fe29cc088cc86ebd5d514;p=platform%2Fupstream%2FlibSkiaSharp.git Make fuzz output the words success for a 'clean exit' 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 --- diff --git a/fuzz/fuzz.cpp b/fuzz/fuzz.cpp index d879f29..042b3ca 100644 --- a/fuzz/fuzz.cpp +++ b/fuzz/fuzz.cpp @@ -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; }