]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/debug: skip TestPanicOnFault on netbsd/arm
authorBenny Siegert <bsiegert@google.com>
Tue, 20 Jul 2021 13:36:08 +0000 (09:36 -0400)
committerBenny Siegert <bsiegert@gmail.com>
Tue, 20 Jul 2021 19:54:36 +0000 (19:54 +0000)
This test has been failing since the builder was updated to
NetBSD 9. While the issue is under investigation, skip the test
so that we do not miss other breakage.

Update issue #45026

Change-Id: Id083901c517f3f88e6b4bc2b51208f65170d47a6
Reviewed-on: https://go-review.googlesource.com/c/go/+/335909
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Benny Siegert <bsiegert@gmail.com>
Run-TryBot: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/runtime/debug/panic_test.go

index b93631e1d83b53e3215ebe754f0de38269e92482..65f9555f3761c55022fe2a4e8ddc7ebf58e1207e 100644 (file)
@@ -24,6 +24,9 @@ func TestPanicOnFault(t *testing.T) {
        if runtime.GOOS == "ios" {
                t.Skip("iOS doesn't provide fault addresses")
        }
+       if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm" {
+               t.Skip("netbsd-arm doesn't provide fault address (golang.org/issue/45026)")
+       }
        m, err := syscall.Mmap(-1, 0, 0x1000, syscall.PROT_READ /* Note: no PROT_WRITE */, syscall.MAP_SHARED|syscall.MAP_ANON)
        if err != nil {
                t.Fatalf("can't map anonymous memory: %s", err)