Commit 54f691d6 authored by Russ Cox's avatar Russ Cox

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 7fd6b925
......@@ -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)
}
......
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