github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/runtime_unix_test.go (about)

     1  // Copyright 2013 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  // Only works on systems with syscall.Close.
     6  // We need a fast system call to provoke the race,
     7  // and Close(-1) is nearly universally fast.
     8  
     9  //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || plan9
    10  
    11  package runtime_test