aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime_test.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-11-06 14:49:56 -0800
committerIan Lance Taylor <iant@golang.org>2019-11-06 23:48:45 +0000
commit6ce4384fd6621454a1d58a4ab46f92da8d8567ed (patch)
treed37ecbbba785058256ff9eab6acd76d77ded523b /src/runtime/runtime_test.go
parent63546a03cc678718a9c878e91ef1d1839b445f53 (diff)
downloadgo-6ce4384fd6621454a1d58a4ab46f92da8d8567ed.tar.gz
go-6ce4384fd6621454a1d58a4ab46f92da8d8567ed.zip
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>
Diffstat (limited to 'src/runtime/runtime_test.go')
-rw-r--r--src/runtime/runtime_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/runtime_test.go b/src/runtime/runtime_test.go
index 26ae77456a..e5d2d97d05 100644
--- a/src/runtime/runtime_test.go
+++ b/src/runtime/runtime_test.go
@@ -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")