1
0
mirror of https://github.com/golang/go synced 2024-11-06 20:36:14 -07:00

runtime: mark testSetPanicOnFault as go:nocheckptr

The test deliberately constructs an invalid pointer, so don't check it.

Fixes #35379

Change-Id: Ifeff3484740786b0470de3a4d2d4103d91e06f5d
Reviewed-on: https://go-review.googlesource.com/c/go/+/205717
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Ian Lance Taylor 2019-11-06 14:49:56 -08:00
parent 63546a03cc
commit 6ce4384fd6

View File

@ -192,6 +192,10 @@ func TestSetPanicOnFault(t *testing.T) {
}
}
// testSetPanicOnFault tests one potentially faulting address.
// It deliberately constructs and uses an invalid pointer,
// so mark it as nocheckptr.
//go:nocheckptr
func testSetPanicOnFault(t *testing.T, addr uintptr, nfault *int) {
if GOOS == "js" {
t.Skip("js does not support catching faults")