]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: don't run TestCheckPtr/TestCheckPtr2 in short mode
authorIan Lance Taylor <iant@golang.org>
Wed, 17 Nov 2021 17:40:11 +0000 (09:40 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 17 Nov 2021 19:18:24 +0000 (19:18 +0000)
Change-Id: I02c9bea1637c2694a76e7747cb8a2e3562301566
Reviewed-on: https://go-review.googlesource.com/c/go/+/364755
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/runtime/checkptr_test.go

index b3aea079c66a25bb92747e5f8191e12050d1df47..15011ec494ad6c69b4958532613bdac9f65d87a0 100644 (file)
@@ -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)