syscall_openbsd_test.go 378 B

12345678910111213141516171819
  1. // Copyright 2018 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. package unix_test
  5. import (
  6. "testing"
  7. "golang.org/x/sys/unix"
  8. )
  9. func TestSysctlUvmexp(t *testing.T) {
  10. uvm, err := unix.SysctlUvmexp("vm.uvmexp")
  11. if err != nil {
  12. t.Fatal(err)
  13. }
  14. t.Logf("free = %v", uvm.Free)
  15. }