From: Tobias Klauser Date: Tue, 11 Jan 2022 09:22:40 +0000 (+0100) Subject: cmd/go: skip TestScript/test_fuzz_test_race on !race X-Git-Tag: go1.18beta2~123 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=28f2869a0d8ae103e0a2aac7c68005d79099f1e1;p=gostls13.git 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 Run-TryBot: Tobias Klauser TryBot-Result: Gopher Robot Reviewed-by: Katie Hockman Trust: Katie Hockman Run-TryBot: Katie Hockman --- diff --git a/src/cmd/go/testdata/script/test_fuzz_test_race.txt b/src/cmd/go/testdata/script/test_fuzz_test_race.txt index 0bbc1fdd7d..9d39cd684e 100644 --- a/src/cmd/go/testdata/script/test_fuzz_test_race.txt +++ b/src/cmd/go/testdata/script/test_fuzz_test_race.txt @@ -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() }) -} \ No newline at end of file +}