aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/checkptr_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/runtime/checkptr_test.go b/src/runtime/checkptr_test.go
index b3aea079c6..15011ec494 100644
--- a/src/runtime/checkptr_test.go
+++ b/src/runtime/checkptr_test.go
@@ -12,6 +12,12 @@ import (
)
func TestCheckPtr(t *testing.T) {
+ // This test requires rebuilding packages with -d=checkptr=1,
+ // so it's somewhat slow.
+ if testing.Short() {
+ t.Skip("skipping test in -short mode")
+ }
+
t.Parallel()
testenv.MustHaveGoRun(t)
@@ -57,6 +63,12 @@ func TestCheckPtr(t *testing.T) {
}
func TestCheckPtr2(t *testing.T) {
+ // This test requires rebuilding packages with -d=checkptr=2,
+ // so it's somewhat slow.
+ if testing.Short() {
+ t.Skip("skipping test in -short mode")
+ }
+
t.Parallel()
testenv.MustHaveGoRun(t)