]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] cmd/go: fix test_fuzz_cache
authorJay Conrod <jayconrod@google.com>
Thu, 13 May 2021 17:13:26 +0000 (13:13 -0400)
committerJay Conrod <jayconrod@google.com>
Wed, 19 May 2021 16:44:18 +0000 (16:44 +0000)
commitbb53bd49571e08909ab6274255ddddd6c6ffe041
tree130627d8823e64e685faa1461011d4c59f0c79a1
parentad24be022be1c3124887ff22fc742494ee12dfb8
[dev.fuzz] cmd/go: fix test_fuzz_cache

This test started failing when coverage-based fuzzing was enabled.
It expects at least one file to be written to the fuzz cache. Nothing
was written because the fuzz function was trivial, and no interesting
inputs could be discovered.

This CL makes the fuzz function return different values for different
inputs, which is enough to pass.

Change-Id: I6ffd2667891cf5f3e4588133efb65f096a739c09
Reviewed-on: https://go-review.googlesource.com/c/go/+/319871
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Katie Hockman <katie@golang.org>
src/cmd/go/testdata/script/test_fuzz_cache.txt