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

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

View as plain text