]> Cypherpunks repositories - gostls13.git/commit
runtime: improve coverage of TestCgoSigfwd
authorAustin Clements <austin@google.com>
Fri, 14 Oct 2022 19:36:58 +0000 (15:36 -0400)
committerAustin Clements <austin@google.com>
Mon, 17 Oct 2022 15:15:34 +0000 (15:15 +0000)
commita81da928b4891f111e40dfca677d3c90d1411f0d
tree5f02d28b17808b1fbd93802396de9c6f06e5dee8
parentdacf88e40a0a3d395988d226b5e43e046dd7e68f
runtime: improve coverage of TestCgoSigfwd

Currently, TestCgoSigfwd will pass incorrectly if the SIGSEGV that
originates in Go mistakenly goes to the C SIGSEGV handler. Fix this by
adding a signal-atomic variable that tracks what the expected behavior
is.

Change-Id: Id2a9fa3b209299dccf90bb60720b89ad96838a9c
Reviewed-on: https://go-review.googlesource.com/c/go/+/443072
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/testdata/testprogcgo/sigfwd.go