syscall_freebsd_test.go 534 B

123456789101112131415161718192021222324
  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. // +build freebsd
  5. package unix_test
  6. import (
  7. "os"
  8. "testing"
  9. "golang.org/x/sys/unix"
  10. )
  11. func TestSysctUint64(t *testing.T) {
  12. _, err := unix.SysctlUint64("vm.max_kernel_address")
  13. if err != nil {
  14. if os.Getenv("GO_BUILDER_NAME") == "freebsd-386-gce101" {
  15. t.Skipf("Ignoring known failing test (golang.org/issue/15186). Failed with: %v", err)
  16. }
  17. t.Fatal(err)
  18. }
  19. }