Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for devNull (0.38 sec)

  1. src/runtime/fds_unix.go

    		EBADF   = 0x09
    		O_RDWR  = 0x02
    	)
    
    	devNull := []byte("/dev/null\x00")
    	for i := 0; i < 3; i++ {
    		ret, errno := fcntl(int32(i), F_GETFD, 0)
    		if ret >= 0 {
    			continue
    		}
    
    		if errno != EBADF {
    			print("runtime: unexpected error while checking standard file descriptor ", i, ", errno=", errno, "\n")
    			throw("cannot open standard fds")
    		}
    
    		if ret := open(&devNull[0], O_RDWR, 0); ret < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:20:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_sum_issue56222.txt

    # checksums needed to run 'go test all'.
    cd m1
    go mod tidy
    
    go list -f '{{if eq .ImportPath "example.com/generics"}}{{.Module.GoVersion}}{{end}}' -deps -test example.com/m2/q
    stdout 1.18
    [!short] go test -o $devnull -c all
    
    cat go.sum
    replace 'example.com/generics v1.0.0/go.mod' 'example.com/notgenerics v1.0.0/go.mod' go.sum
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 13:58:58 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_dash_o_dev_null.txt

    # Issue #25579
    
    [short] skip
    
    go build -o $devnull hello.go
    ! exists 'hello'$GOEXE
    
    -- hello.go --
    package main
    
    func main() {
    	println("hello, world")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 20:50:11 UTC 2020
    - 154 bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/go/testdata/script/goflags.txt

    # except in go bug (untested) and go env
    go env
    stdout GOFLAGS
    
    # Flags listed in GOFLAGS should be safe to duplicate on the command line.
    env GOFLAGS=-tags=magic
    go list -tags=magic
    go test -tags=magic -c -o $devnull
    go vet -tags=magic
    
    # GOFLAGS uses the same quoting rules (quoted.Split) as the rest of
    # the go command env variables
    env GOFLAGS='"-tags=magic wizardry"'
    go list
    
    -- foo_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:47:27 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz_cleanup.txt

    stdout '(?s)inner.*outer'
    
    # TODO(jayconrod): test cleanup while fuzzing. For now, the worker process's
    # stdout and stderr is connected to the coordinator's, but it should eventually
    # be connected to os.DevNull, so we wouldn't see t.Log output.
    
    -- go.mod --
    module cleanup
    
    go 1.15
    -- cleanup_test.go --
    package cleanup
    
    import (
    	"runtime"
    	"testing"
    )
    
    func FuzzTargetSkip(f *testing.F) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/go/internal/base/path.go

    }
    
    // IsNull reports whether the path is a common name for the null device.
    // It returns true for /dev/null on Unix, or NUL (case-insensitive) on Windows.
    func IsNull(path string) bool {
    	if path == os.DevNull {
    		return true
    	}
    	if runtime.GOOS == "windows" {
    		if strings.EqualFold(path, "NUL") {
    			return true
    		}
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 19:17:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_buildvcs.txt

    # This ensures that we aren't loading VCS metadata that
    # we subsequently throw away.
    env PATH=''
    env path=''
    
    # Compiling the test should not require the VCS tool.
    go test -c -o $devnull .
    
    
    # When listing a main package, in general we need its VCS metadata to determine
    # the .Stale and .StaleReason fields.
    ! go list -buildvcs=true .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:32 UTC 2022
    - 2.9K bytes
    - Viewed (0)
Back to top