Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNonblockingPipe (0.29 sec)

  1. src/runtime/nbpipe_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package runtime_test
    
    import (
    	"runtime"
    	"syscall"
    	"testing"
    	"unsafe"
    )
    
    func TestNonblockingPipe(t *testing.T) {
    	// NonblockingPipe is the test name for nonblockingPipe.
    	r, w, errno := runtime.NonblockingPipe()
    	if errno != 0 {
    		t.Fatal(syscall.Errno(errno))
    	}
    	defer runtime.Close(w)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 20:32:54 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top