From 54f691d69d39bc19c2069384cd702c6fdec0b92d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 26 Oct 2016 23:18:53 -0400 Subject: [PATCH] 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 --- src/runtime/memmove_linux_amd64_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.48.1