github.com/maenmax/kairep@v0.0.0-20210218001208-55bf3df36788/src/golang.org/x/sys/unix/syscall_freebsd_test.go (about)

     1  // Copyright 2014 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build freebsd
     6  
     7  package unix_test
     8  
     9  import (
    10  	"os"
    11  	"testing"
    12  
    13  	"golang.org/x/sys/unix"
    14  )
    15  
    16  func TestSysctUint64(t *testing.T) {
    17  	_, err := unix.SysctlUint64("vm.max_kernel_address")
    18  	if err != nil {
    19  		if os.Getenv("GO_BUILDER_NAME") == "freebsd-386-gce101" {
    20  			t.Skipf("Ignoring known failing test (golang.org/issue/15186). Failed with: %v", err)
    21  		}
    22  		t.Fatal(err)
    23  	}
    24  }