diff --git a/src/cmd/api/api_test.go b/src/cmd/api/api_test.go index 32da68982b..98ebf168ef 100644 --- a/src/cmd/api/api_test.go +++ b/src/cmd/api/api_test.go @@ -99,6 +99,11 @@ func TestGolden(t *testing.T) { } func TestCompareAPI(t *testing.T) { + if *flagCheck { + // not worth repeating in -check + t.Skip("skipping with -check set") + } + tests := []struct { name string features, required, exception []string @@ -180,6 +185,11 @@ func TestCompareAPI(t *testing.T) { } func TestSkipInternal(t *testing.T) { + if *flagCheck { + // not worth repeating in -check + t.Skip("skipping with -check set") + } + tests := []struct { pkg string want bool @@ -294,14 +304,20 @@ func TestIssue41358(t *testing.T) { } func TestIssue64958(t *testing.T) { + if testing.Short() { + t.Skip("skipping with -short") + } + if *flagCheck { + // slow, not worth repeating in -check + t.Skip("skipping with -check set") + } + testenv.MustHaveGoBuild(t) + defer func() { if x := recover(); x != nil { t.Errorf("expected no panic; recovered %v", x) } }() - - testenv.MustHaveGoBuild(t) - for _, context := range contexts { w := NewWalker(context, "testdata/src/issue64958") pkg, err := w.importFrom("p", "", 0)