]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo/testsigfwd: move to runtime/testprog/testprogcgo
authorAustin Clements <austin@google.com>
Fri, 14 Oct 2022 18:50:19 +0000 (14:50 -0400)
committerAustin Clements <austin@google.com>
Mon, 17 Oct 2022 15:15:33 +0000 (15:15 +0000)
commitdacf88e40a0a3d395988d226b5e43e046dd7e68f
tree0d3b3c7c3ef8990f0dadc6ed28b5d67435f50f98
parentabd592b3d7c3e05eaa9dd6a69749e497b1973002
misc/cgo/testsigfwd: move to runtime/testprog/testprogcgo

This migrates testsigfwd, which uses some one-off build
infrastructure, to be part of the runtime's testprogcgo.

The test is largely unchanged. Because it's part of a larger binary,
this CL renames a few things and gates the constructor-time signal
handler registration on an environment variable. This CL also replaces
an errant fmt.Errorf with fmt.Fprintf.

For #37486, since it eliminates a non-go-test from dist.

Change-Id: I0efd146ea0a0a3f0b361431349a419af0f0ecc61
Reviewed-on: https://go-review.googlesource.com/c/go/+/443068
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/dist/test.go
src/runtime/crash_cgo_test.go
src/runtime/testdata/testprogcgo/sigfwd.go [moved from misc/cgo/testsigfwd/main.go with 68% similarity]