aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/test_write_profiles_on_timeout.txt
blob: 08e67a429e0a899abc7c1db925d2dcbc3dc27bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Tests issue 19394

[short] skip

! go test -cpuprofile cpu.pprof -memprofile mem.pprof -timeout 1ms
grep . cpu.pprof
grep . mem.pprof

-- go.mod --
module profiling

go 1.16
-- timeout_test.go --
package timeouttest_test
import "testing"
import "time"
func TestSleep(t *testing.T) { time.Sleep(time.Second) }