diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2026-04-06 12:38:21 +1000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-04-07 04:12:42 -0700 |
| commit | f5d460c3ea59ab574d5908f66f604c573891ffe1 (patch) | |
| tree | 34748566176441fb660da8a9de899d214ddb8214 | |
| parent | 3b5954c6349d31465dca409b45ab6597e0942d9f (diff) | |
| download | go-f5d460c3ea59ab574d5908f66f604c573891ffe1.tar.xz | |
cmd/compile/testdata/script/issue77033.txt: make test panic
The issue77033.txt script is executed by
cmd/internal/script/scripttest/run.go
program, that uses 60 seconds interrupt timeout.
The timeout is implemented by calling
os/exec.Cmd.Process.Signal(os.Interrupt)
but that call is not implemented on Windows, and we get
run.go:259: FAIL: testdata\script\issue77033.txt:2: go test -bench=Foo -pgo=default.pgo: exec: canceling Cmd: not supported by windows
useless output when the test fails on Windows.
This CL adds -timeout=30s to go test command, that will make test panic.
Hopefully panic will provide more details about the failure.
For #77485
Change-Id: I69839c59a28f48fea5d504a5038145ffd651aed2
Reviewed-on: https://go-review.googlesource.com/c/go/+/762980
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
| -rw-r--r-- | src/cmd/compile/testdata/script/issue77033.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/testdata/script/issue77033.txt b/src/cmd/compile/testdata/script/issue77033.txt index 3b977e5440..40d4a95405 100644 --- a/src/cmd/compile/testdata/script/issue77033.txt +++ b/src/cmd/compile/testdata/script/issue77033.txt @@ -1,5 +1,5 @@ -go test -bench=Foo -cpuprofile=default.pgo -go test -bench=Foo -pgo=default.pgo +go test -bench=Foo -cpuprofile=default.pgo -timeout=30s +go test -bench=Foo -pgo=default.pgo -timeout=30s ! stdout 'FAIL' -- main_test.go -- |
