]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.fuzz] testing, internal/fuzz: multiple small fixes
authorJay Conrod <jayconrod@google.com>
Fri, 26 Feb 2021 15:54:11 +0000 (10:54 -0500)
committerJay Conrod <jayconrod@google.com>
Tue, 9 Mar 2021 18:36:29 +0000 (18:36 +0000)
commitf251d1fbb69156627379df28a150343c08a29474
treeb4c993db785b5b504df60b709daecae483255a40
parentb89483497a7349bb8dba9110e765f5ff1189f69d
[dev.fuzz] testing, internal/fuzz: multiple small fixes

* Run gofmt with go1.17 build constraint changes.
* Tighten regular expressions used in tests. "ok" got some false
  positives with verbose output, so make sure it appears at the start
  of a line.
* Return err in deps.RunFuzzWorker instead of nil.
* Call common.Helper from F methods. This prevents F methods from
  appearing in stack traces.

Change-Id: I839c70ec8a9f313c1a4ea68e6bb34a4d801dd36f
Reviewed-on: https://go-review.googlesource.com/c/go/+/297032
Trust: Jay Conrod <jayconrod@google.com>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/cmd/go/internal/test/genflags.go
src/cmd/go/testdata/script/test_fuzz_match.txt
src/cmd/go/testdata/script/test_fuzz_mutator.txt
src/internal/fuzz/sys_posix.go
src/internal/fuzz/sys_unimplemented.go
src/testing/fuzz.go
src/testing/internal/testdeps/deps.go