aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2024-05-29 22:04:04 +0000
committerJoedian Reid <joedian@google.com>2024-06-24 17:05:49 +0000
commitab60a7bc18c990513532b4d33c1e2673fb1ea703 (patch)
treeaf681744429c7303a870739401a13993dc4bb64b
parent4c97e883b5f062344180adb22266a8bf48c19a23 (diff)
downloadgo-ab60a7bc18c990513532b4d33c1e2673fb1ea703.tar.xz
[release-branch.go1.22] cmd/cgo/internal/testsanitizers: make the libfuzzer tests all short
CL 589295 only made one of the two tests short, because the other one seemed to be passing consistently in short mode. On the builders, it seems to still fail maybe 30% of the time by taking too long. Disable these tests in short mode. This CL was merged with CL 589295 before cherry-picking. For #67698. Fixes #67715. Change-Id: I9fd047f834f7493b608dd1fee5b9b6dfabbea03d Cq-Include-Trybots: luci.golang.try:go1.22-linux-amd64-clang15,go1.22-linux-386-clang15 Reviewed-on: https://go-review.googlesource.com/c/go/+/589495 Auto-Submit: Michael Knyszek <mknyszek@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Michael Knyszek <mknyszek@google.com> Reviewed-on: https://go-review.googlesource.com/c/go/+/591376
-rw-r--r--src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go b/src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go
index 3f5b1d91c7..85c8f7bbfb 100644
--- a/src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go
+++ b/src/cmd/cgo/internal/testsanitizers/libfuzzer_test.go
@@ -13,8 +13,13 @@ import (
)
func TestLibFuzzer(t *testing.T) {
+ // Skip tests in short mode.
+ if testing.Short() {
+ t.Skip("libfuzzer tests can take upwards of minutes to run; skipping in short mode")
+ }
testenv.MustHaveGoBuild(t)
testenv.MustHaveCGO(t)
+
goos, err := goEnv("GOOS")
if err != nil {
t.Fatal(err)