Commit 6ce4384f authored by Ian Lance Taylor's avatar Ian Lance Taylor

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/+/205717Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
parent 63546a03
...@@ -192,6 +192,10 @@ func TestSetPanicOnFault(t *testing.T) { ...@@ -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) { func testSetPanicOnFault(t *testing.T, addr uintptr, nfault *int) {
if GOOS == "js" { if GOOS == "js" {
t.Skip("js does not support catching faults") t.Skip("js does not support catching faults")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment