mirror of
https://github.com/golang/go
synced 2024-11-19 05:44:40 -07:00
cmd/go: skip TestScript/test_fuzz_test_race on !race
Skip the test on targets which don't support the race detector. This fixes the linux-386-longtest builder after CL 376554. Updates #50488 Change-Id: I08bf6f72cc0731761d49121eb7cfaa8b53906d37 Reviewed-on: https://go-review.googlesource.com/c/go/+/377634 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Katie Hockman <katie@golang.org> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Katie Hockman <katie@golang.org>
This commit is contained in:
parent
90a8482a17
commit
28f2869a0d
@ -4,8 +4,9 @@
|
||||
|
||||
[short] skip
|
||||
[!fuzz] skip
|
||||
[!race] skip
|
||||
|
||||
# Test with coverage instrumentation enbaled (-fuzz) and race instrumentation
|
||||
# Test with coverage instrumentation enabled (-fuzz) and race instrumentation
|
||||
# but without actually fuzzing the target (by using a non-matching pattern)
|
||||
go test -fuzz=xxx -race -v
|
||||
! stderr 'race detected during execution of test'
|
||||
@ -35,4 +36,4 @@ func FuzzRace(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, i int) {
|
||||
t.Parallel()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user