diff options
| author | Ian Lance Taylor <iant@golang.org> | 2021-11-17 09:40:11 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2021-11-17 19:18:24 +0000 |
| commit | aa34ea2f4c57ea2648286463ef3f891e49b64fa8 (patch) | |
| tree | 57304cb625f39fc111436089e6a9212030cab7c4 /src/runtime/checkptr_test.go | |
| parent | 0981724eaeb9e3a4553473072c38cf11822bc7fd (diff) | |
| download | go-aa34ea2f4c57ea2648286463ef3f891e49b64fa8.tar.xz | |
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 <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>
Diffstat (limited to 'src/runtime/checkptr_test.go')
| -rw-r--r-- | src/runtime/checkptr_test.go | 12 |
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) |
