Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPipeEOF (0.1 sec)

  1. src/os/pipe_test.go

    	// probably didn't unblock the call to r.Read. Close w to unblock it.
    	w.Close()
    	<-done
    }
    
    func TestPipeEOF(t *testing.T) {
    	t.Parallel()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	testPipeEOF(t, r, w)
    }
    
    // testPipeEOF tests that when the write side of a pipe or FIFO is closed,
    // a blocked Read call on the reader side returns io.EOF.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
Back to top