]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo/testcarchive: permit SIGQUIT for TestSignalForwardingExternal
authorIan Lance Taylor <iant@golang.org>
Thu, 21 Jul 2022 23:49:48 +0000 (16:49 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 19 Aug 2022 03:09:05 +0000 (03:09 +0000)
commita409356c548133e188acd7873e73a66ff5982b57
tree4e67f7f36cde1213db2ef52aa77e770f70840bf7
parent55ecc3a88670c14bbbfc9d6c96cf65891cc608f5
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.

Fixes #53907

Change-Id: Iaefb964c2be4a815c11c507fa89648f8a7740ba9
Reviewed-on: https://go-review.googlesource.com/c/go/+/419014
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
misc/cgo/testcarchive/carchive_test.go
misc/cgo/testcarchive/testdata/libgo2/libgo2.go
misc/cgo/testcarchive/testdata/main5.c