From 28f2869a0d8ae103e0a2aac7c68005d79099f1e1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 11 Jan 2022 10:22:40 +0100 Subject: [PATCH] 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 --- src/cmd/go/testdata/script/test_fuzz_test_race.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +} -- 2.50.0