]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/coverage: skip more tests in short mode
authorThan McIntosh <thanm@google.com>
Mon, 17 Oct 2022 17:35:01 +0000 (13:35 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 17 Oct 2022 18:22:06 +0000 (18:22 +0000)
Add more skips if short mode testing, since some of these tests
still seem to be timing out on smaller and more underpowered
builders.

Updates #56197.

Change-Id: I469d9fd3a6be5602243234562fa3fe6263968b56
Reviewed-on: https://go-review.googlesource.com/c/go/+/443376
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>

src/runtime/coverage/emitdata_test.go

index e74db3e33266da57a5da34fe99cc70bff56085a2..0ccb2d27b0c831bd97427443666485afcb329334 100644 (file)
@@ -22,6 +22,9 @@ import (
 const fixedTestDir = false
 
 func TestCoverageApis(t *testing.T) {
+       if testing.Short() {
+               t.Skipf("skipping test: too long for short mode")
+       }
        if !goexperiment.CoverageRedesign {
                t.Skipf("skipping new coverage tests (experiment not enabled)")
        }
@@ -388,6 +391,9 @@ func testEmitWithCounterClear(t *testing.T, harnessPath string, dir string) {
 }
 
 func TestApisOnNocoverBinary(t *testing.T) {
+       if testing.Short() {
+               t.Skipf("skipping test: too long for short mode")
+       }
        testenv.MustHaveGoBuild(t)
        dir := t.TempDir()