/
/
opt
/
golang
/
1.22.0
/
src
/
cmd
/
go
/
testdata
/
script
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.137
PHP 8.3.16
Dir:
/opt/golang/1.22.0/src/cmd/go/testdata/script
Edit:
/opt/golang/1.22.0/src/cmd/go/testdata/script/test_race_cover_mode_issue20435.txt
[short] skip [!race] skip # Make sure test is functional. go test testrace # Now, check that -race -covermode=set is not allowed. ! go test -race -covermode=set testrace stderr '-covermode must be "atomic", not "set", when -race is enabled' ! stdout PASS ! stderr PASS -- go.mod -- module testrace go 1.16 -- race_test.go -- package testrace import "testing" func TestRace(t *testing.T) { for i := 0; i < 10; i++ { c := make(chan int) x := 1 go func() { x = 2 c <- 1 }() x = 3 <-c _ = x } } func BenchmarkRace(b *testing.B) { for i := 0; i < b.N; i++ { c := make(chan int) x := 1 go func() { x = 2 c <- 1 }() x = 3 <-c _ = x } }
Ukuran: 680 B