From: Russ Cox Date: Thu, 27 Oct 2016 03:18:53 +0000 (-0400) Subject: runtime: skip TestMemmoveOverflow if mmap of needed page fails X-Git-Tag: go1.8beta1~520 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=54f691d69d39bc19c2069384cd702c6fdec0b92d;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- 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) }