From aa34ea2f4c57ea2648286463ef3f891e49b64fa8 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 17 Nov 2021 09:40:11 -0800 Subject: [PATCH] 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 Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot Reviewed-by: Matthew Dempsky --- src/runtime/checkptr_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- 2.50.0