...

Text file src/cmd/go/testdata/script/test_race_tag.txt

Documentation: cmd/go/testdata/script

     1# Tests Issue #54468
     2
     3[short] skip 'links a test binary'
     4[!race] skip
     5
     6go mod tidy
     7go test -c -o=$devnull -race .
     8
     9! stderr 'cannot find package'
    10
    11-- go.mod --
    12module testrace
    13
    14go 1.18
    15
    16require rsc.io/sampler v1.0.0
    17-- race_test.go --
    18//go:build race
    19
    20package testrace
    21
    22import (
    23        "testing"
    24
    25        _ "rsc.io/sampler"
    26)
    27
    28func TestRaceTag(t *testing.T) {
    29}

View as plain text