]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] misc/cgo/testcarchive: permit SIGQUIT for TestSignalForwardin...
authorIan Lance Taylor <iant@golang.org>
Fri, 19 Aug 2022 21:43:47 +0000 (14:43 -0700)
committerHeschi Kreinick <heschi@google.com>
Mon, 29 Aug 2022 19:07:43 +0000 (19:07 +0000)
commitdb2685159346c582cf8ff4cdf8d3632c3b4b1bf6
tree0937f7b14e143598eba719dae78d7bc6d3d964ed
parentbf812b32b0b4105342af981330a4ffd50a2fb28e
[release-branch.go1.18] misc/cgo/testcarchive: permit SIGQUIT for TestSignalForwardingExternal

Occasionally the signal will be sent to a Go thread, which will cause
the program to exit with SIGQUIT rather than SIGSEGV.

Add TestSignalForwardingGo to test the case where the signal is
expected to be delivered to a Go thread.

This is a roll forward of CL 419014 which was rolled back in CL 424954.
This CL differs from 419014 in that it skips TestSignalForwardingGo
on darwin-amd64.

For #53907
Fixes #54056

Change-Id: I5df3fd610c068df3bd48d9b3d7a9379248b97999
Reviewed-on: https://go-review.googlesource.com/c/go/+/425002
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
(cherry picked from commit d05ce23756573c6dc2c5026d936f2ef6ac140ee2)
Reviewed-on: https://go-review.googlesource.com/c/go/+/425486
Reviewed-by: David Chase <drchase@google.com>
misc/cgo/testcarchive/carchive_test.go
misc/cgo/testcarchive/testdata/libgo2/libgo2.go
misc/cgo/testcarchive/testdata/main5.c
src/runtime/signal_darwin_amd64.go