Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testPipeEOF (0.18 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)
  2. src/os/fifo_test.go

    	if err != nil {
    		t.Error(err)
    	}
    
    	r := <-rc
    	if t.Failed() {
    		if r != nil {
    			r.Close()
    		}
    		if w != nil {
    			w.Close()
    		}
    		return
    	}
    
    	testPipeEOF(t, r, w)
    }
    
    // Issue #59545.
    func TestNonPollable(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test with tight loops in short mode")
    	}
    
    	// We need to open a non-pollable file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top