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

     1  env GO111MODULE=off
     2  
     3  # Issue 23150
     4  
     5  [short] skip
     6  
     7  go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x
     8  rm $WORK/cpu_profile_twice.out
     9  
    10  go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x
    11  exists $WORK/cpu_profile_twice.out
    12  
    13  
    14  -- x/x_test.go --
    15  package x_test
    16  import (
    17      "testing"
    18      "time"
    19  )
    20  func TestSleep(t *testing.T) {
    21      time.Sleep(10 * time.Millisecond)
    22  }
    23  

View as plain text