diff options
author | Russ Cox <rsc@golang.org> | 2016-10-26 23:18:53 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2016-10-28 17:10:39 +0000 |
commit | 54f691d69d39bc19c2069384cd702c6fdec0b92d (patch) | |
tree | c43074d9def2ddbcd155621c965ad6cac5241b58 /src/runtime/memmove_linux_amd64_test.go | |
parent | 7fd6b925e38f67c2d0cb3fca0f3dc8b6dfb0708c (diff) | |
download | go-54f691d69d39bc19c2069384cd702c6fdec0b92d.tar.gz go-54f691d69d39bc19c2069384cd702c6fdec0b92d.zip |
runtime: skip TestMemmoveOverflow if mmap of needed page fails
Fixes #16731.
Change-Id: I6d393357973d008ab7cf5fb264acb7d38c9354eb
Reviewed-on: https://go-review.googlesource.com/32104
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/memmove_linux_amd64_test.go')
-rw-r--r-- | src/runtime/memmove_linux_amd64_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/memmove_linux_amd64_test.go b/src/runtime/memmove_linux_amd64_test.go index 1dd5d49b5f..b69e8fc8de 100644 --- a/src/runtime/memmove_linux_amd64_test.go +++ b/src/runtime/memmove_linux_amd64_test.go @@ -40,7 +40,7 @@ func TestMemmoveOverflow(t *testing.T) { _, _, errno := syscall.Syscall6(syscall.SYS_MMAP, base+off, 65536, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_SHARED|syscall.MAP_FIXED, tmp.Fd(), 0) if errno != 0 { - t.Fatalf("could not map a page at requested 0x%x: %s", base+off, errno) + t.Skipf("could not map a page at requested 0x%x: %s", base+off, errno) } defer syscall.Syscall(syscall.SYS_MUNMAP, base+off, 65536, 0) } |