diff --git a/go/pointer/pointer_test.go b/go/pointer/pointer_test.go index ff75a05310..1ac5b6c9ff 100644 --- a/go/pointer/pointer_test.go +++ b/go/pointer/pointer_test.go @@ -26,6 +26,7 @@ import ( "strconv" "strings" "testing" + "unsafe" "golang.org/x/tools/go/callgraph" "golang.org/x/tools/go/packages" @@ -553,6 +554,9 @@ func TestInput(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode; this test requires tons of memory; https://golang.org/issue/14113") } + if unsafe.Sizeof(unsafe.Pointer(nil)) <= 4 { + t.Skip("skipping memory-intensive test on platform with small address space; https://golang.org/issue/14113") + } ok := true wd, err := os.Getwd()