]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: skip TestScript/test_fuzz_test_race on !race
authorTobias Klauser <tklauser@distanz.ch>
Tue, 11 Jan 2022 09:22:40 +0000 (10:22 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 11 Jan 2022 15:23:23 +0000 (15:23 +0000)
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>

src/cmd/go/testdata/script/test_fuzz_test_race.txt

index 0bbc1fdd7def6b64bd64ed1300c44b0c35eec0a2..9d39cd684e7d19ce82b3f38b452d6548a4620b42 100644 (file)
@@ -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
+}