Skip to content

Commit aa34ea2

Browse files
runtime: don't run TestCheckPtr/TestCheckPtr2 in short mode
Change-Id: I02c9bea1637c2694a76e7747cb8a2e3562301566 Reviewed-on: https://go-review.googlesource.com/c/go/+/364755 Trust: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent 0981724 commit aa34ea2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/runtime/checkptr_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ import (
1212
)
1313

1414
func TestCheckPtr(t *testing.T) {
15+
// This test requires rebuilding packages with -d=checkptr=1,
16+
// so it's somewhat slow.
17+
if testing.Short() {
18+
t.Skip("skipping test in -short mode")
19+
}
20+
1521
t.Parallel()
1622
testenv.MustHaveGoRun(t)
1723

@@ -57,6 +63,12 @@ func TestCheckPtr(t *testing.T) {
5763
}
5864

5965
func TestCheckPtr2(t *testing.T) {
66+
// This test requires rebuilding packages with -d=checkptr=2,
67+
// so it's somewhat slow.
68+
if testing.Short() {
69+
t.Skip("skipping test in -short mode")
70+
}
71+
6072
t.Parallel()
6173
testenv.MustHaveGoRun(t)
6274

0 commit comments

Comments
 (0)