summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/script/cpu_profile_twice.txt
blob: 142d5ee718dceb754630d4ae833b61f1dd7513f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Issue 23150

[short] skip

go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x
rm $WORK/cpu_profile_twice.out

go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x
exists $WORK/cpu_profile_twice.out


-- x/x_test.go --
package x_test
import (
    "testing"
    "time"
)
func TestSleep(t *testing.T) {
    time.Sleep(10 * time.Millisecond)
}