Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for devNull (0.22 sec)

  1. cni/pkg/nodeagent/ztunnelserver_test.go

    }
    
    func podAndNetns() (*v1.Pod, *fakeNs) {
    	devNull, err := os.Open(os.DevNull)
    	if err != nil {
    		panic(err)
    	}
    	// we can't close this now, because we need to pass it from the ztunnel server to the client
    	// it would leak, but this is a test, so we don't care
    	//	defer devNull.Close()
    
    	id := ztunnelTestCounter.Add(1)
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_deadline.txt

    [!fuzz] skip
    [short] skip
    env GOCACHE=$WORK/cache
    
    # Warm up the build cache with GOMAXPROCS unrestricted.
    go test -c -o $devnull
    
    # For the fuzzing phase, we reduce GOMAXPROCS to avoid consuming too many
    # resources during the test. Ideally this would just free up resources to run
    # other parallel tests more quickly, but unfortunately it is actually necessary
    # in some 32-bit environments to prevent the fuzzing engine from running out of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 20:09:52 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. cmd/peer-rest-common.go

    	peerRESTMethodDownloadProfilingData = "/downloadprofilingdata"
    	peerRESTMethodSpeedTest             = "/speedtest"
    	peerRESTMethodDriveSpeedTest        = "/drivespeedtest"
    	peerRESTMethodDevNull               = "/devnull"
    	peerRESTMethodNetperf               = "/netperf"
    	peerRESTMethodGetReplicationMRF     = "/getreplicationmrf"
    )
    
    const (
    	peerRESTBucket          = "bucket"
    	peerRESTBuckets         = "buckets"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 09:45:10 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/go/scriptreadme_test.go

    	GOROOT=<actual GOROOT>
    	TESTGO_GOROOT=<GOROOT used to build cmd/go, for use in tests that may change GOROOT>
    	HOME=/no-home
    	PATH=<actual PATH>
    	TMPDIR=$WORK/tmp
    	GODEBUG=<actual GODEBUG>
    	devnull=<value of os.DevNull>
    	goversion=<current Go version; for example, 1.12>
    
    On Plan 9, the variables $path and $home are set instead of $PATH and $HOME.
    On Windows, the variables $USERPROFILE and $TMP are set instead of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. cmd/admin-router.go

    	adminAPIVersionPrefix          = SlashSeparator + adminAPIVersion
    	adminAPISiteReplicationDevNull = "/site-replication/devnull"
    	adminAPISiteReplicationNetPerf = "/site-replication/netperf"
    	adminAPIClientDevNull          = "/speedtest/client/devnull"
    	adminAPIClientDevExtraTime     = "/speedtest/client/devnull/extratime"
    )
    
    var gzipHandler = func() func(http.Handler) http.HandlerFunc {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. src/os/file_windows.go

    	if h == syscall.InvalidHandle {
    		return nil
    	}
    	return newFile(h, name, "file")
    }
    
    func epipecheck(file *File, e error) {
    }
    
    // DevNull is the name of the operating system's “null device.”
    // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
    const DevNull = "NUL"
    
    // openFileNolog is the Windows implementation of OpenFile.
    func openFileNolog(name string, flag int, perm FileMode) (*File, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. src/cmd/go/script_test.go

    		"TESTGO_VCSTEST_CERT=" + srvCertFile,
    		"TESTGONETWORK=panic", // cleared by the [net] condition
    		"GOSUMDB=" + testSumDBVerifierKey,
    		"GONOPROXY=",
    		"GONOSUMDB=",
    		"GOVCS=*:all",
    		"devnull=" + os.DevNull,
    		"goversion=" + gover.Local(),
    		"CMDGO_TEST_RUN_MAIN=true",
    		"HGRCPATH=",
    		"GOTOOLCHAIN=auto",
    		"newline=\n",
    	}
    
    	if testenv.Builder() != "" || os.Getenv("GIT_TRACE_CURL") == "1" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/os/file_unix.go

    // issue 11845.
    func epipecheck(file *File, e error) {
    	if e == syscall.EPIPE && file.stdoutOrErr {
    		sigpipe()
    	}
    }
    
    // DevNull is the name of the operating system's “null device.”
    // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
    const DevNull = "/dev/null"
    
    // openFileNolog is the Unix implementation of OpenFile.
    // Changes here should be reflected in openDirAt and openDirNolog, if relevant.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/README

    	GOROOT=<actual GOROOT>
    	TESTGO_GOROOT=<GOROOT used to build cmd/go, for use in tests that may change GOROOT>
    	HOME=/no-home
    	PATH=<actual PATH>
    	TMPDIR=$WORK/tmp
    	GODEBUG=<actual GODEBUG>
    	devnull=<value of os.DevNull>
    	goversion=<current Go version; for example, 1.12>
    
    On Plan 9, the variables $path and $home are set instead of $PATH and $HOME.
    On Windows, the variables $USERPROFILE and $TMP are set instead of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. src/internal/testenv/testenv_test.go

    	mainGo := filepath.Join(dir, "main.go")
    	if err := os.WriteFile(mainGo, []byte("package main\nfunc main() {}\n"), 0644); err != nil {
    		t.Fatal(err)
    	}
    	cmd := testenv.Command(t, "go", "build", "-o", os.DevNull, mainGo)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("%v: %v\n%s", cmd, err, out)
    	}
    }
    
    func TestMustHaveExec(t *testing.T) {
    	hasExec := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top