Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for npipe (0.08 sec)

  1. src/os/exec_test.go

    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatalf("Pipe() got err %v, want nil", err)
    	}
    	defer r.Close()
    	defer w.Close()
    
    	p, err := os.StartProcess(testenv.GoToolPath(t), []string{"go"}, &os.ProcAttr{
    		// N.B. On Windows, StartProcess requires exactly 3 Files. Pass
    		// in a dummy pipe to avoid irrelevant output on the test stdout.
    		Files: []*os.File{r, w, w},
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. cni/pkg/log/uds_test.go

    	stop := make(chan struct{})
    	defer close(stop)
    	assert.NoError(t, logger.StartUDSLogServer(udsSock, stop))
    
    	// Configure log to tee to UDS server
    	stdout := os.Stdout
    	r, w, _ := os.Pipe()
    	os.Stdout = w
    	loggingOptions := istiolog.DefaultOptions()
    	loggingOptions.JSONEncoding = true
    	loggingOptions.WithTeeToUDS(udsSock, constants.UDSLogPath)
    	assert.NoError(t, istiolog.Configure(loggingOptions))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top