Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for runEnv (0.31 sec)

  1. src/cmd/dist/util.go

    	}
    	return keep
    }
    
    const (
    	CheckExit = 1 << iota
    	ShowOutput
    	Background
    )
    
    var outputLock sync.Mutex
    
    // run is like runEnv with no additional environment.
    func run(dir string, mode int, cmd ...string) string {
    	return runEnv(dir, mode, nil, cmd...)
    }
    
    // runEnv runs the command line cmd in dir with additional environment env.
    // If mode has ShowOutput set and Background unset, run passes cmd's output to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/envcmd/env.go

    	}
    
    	// Handle 'go env -w' and 'go env -u' before calling buildcfg.Check,
    	// so they can be used to recover from an invalid configuration.
    	if *envW {
    		runEnvW(args)
    		return
    	}
    
    	if *envU {
    		runEnvU(args)
    		return
    	}
    
    	buildcfg.Check()
    	if cfg.ExperimentErr != nil {
    		base.Fatal(cfg.ExperimentErr)
    	}
    
    	for _, arg := range args {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/cshared_test.go

    		ldLibPath += ":"
    	}
    	ldLibPath += tmpdir
    
    	runenv := []string{"LD_LIBRARY_PATH=" + ldLibPath}
    
    	bin := filepath.Join(tmpdir, "m1") + exeSuffix
    	run(t, goenv, "go", "build", "-o", bin, "./go2c2go/m1")
    	runExe(t, runenv, bin)
    
    	bin = filepath.Join(tmpdir, "m2") + exeSuffix
    	run(t, goenv, "go", "build", "-o", bin, "./go2c2go/m2")
    	runExe(t, runenv, bin)
    }
    
    func TestIssue36233(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  4. pkg/test/framework/suite_test.go

    	g := NewWithT(t)
    
    	var waitForRun1 sync.WaitGroup
    	waitForRun1.Add(1)
    	var waitForTestCompletion sync.WaitGroup
    	waitForTestCompletion.Add(1)
    	runFn1 := func(ctx *suiteContext) int {
    		waitForRun1.Done()
    		waitForTestCompletion.Wait()
    		return 0
    	}
    
    	runFn2 := func(ctx *suiteContext) int {
    		return 0
    	}
    
    	var waitForExit1Call sync.WaitGroup
    	waitForExit1Call.Add(1)
    	var errCode1 int
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/text/unicode/bidi/core.go

    		if t == ET {
    			// locate end of sequence
    			runStart := i
    			runEnd := s.findRunLimit(runStart, ET)
    
    			// check values at ends of sequence
    			t := s.sos
    			if runStart > 0 {
    				t = s.types[runStart-1]
    			}
    			if t != EN {
    				t = s.eos
    				if runEnd < len(s.types) {
    					t = s.types[runEnd]
    				}
    			}
    			if t == EN {
    				setTypes(s.types[runStart:runEnd], EN)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:26:23 UTC 2022
    - 29.4K bytes
    - Viewed (0)
  6. src/runtime/runtime_test.go

    			b.ReportMetric(float64(latencies[len(latencies)*99/100]), "p99-ns")
    		}
    		return func(b *testing.B) {
    			b.Run("idle", runOne)
    
    			b.Run("loaded", func(b *testing.B) {
    				stop := applyGCLoad(b)
    				runOne(b)
    				// Make sure to stop the timer before we wait! The load created above
    				// is very heavy-weight and not easy to stop, so we could end up
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/testing/benchmark.go

    // benchmark function that calls ReportAllocs.
    func (b *B) ReportAllocs() {
    	b.showAllocResult = true
    }
    
    // runN runs a single benchmark for the specified number of iterations.
    func (b *B) runN(n int) {
    	benchmarkLock.Lock()
    	defer benchmarkLock.Unlock()
    	defer func() {
    		b.runCleanup(normalPanic)
    		b.checkRaces()
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/cmd/bisect/main.go

    		broken = runY
    		b.Disable = false
    
    	case !runN.Success && runY.Success:
    		b.Logf("target fails with no changes, succeeds with all changes")
    		b.Logf("searching for minimal set of disabled changes causing failure")
    		broken = runN
    		b.Disable = true
    
    	case runN.Success && runY.Success:
    		b.Fatalf("target succeeds with no changes and all changes")
    
    	case !runN.Success && !runY.Success:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  9. pilot/pkg/leaderelection/leaderelection_test.go

    	}, retry.Timeout(time.Second))
    }
    
    func TestLeaderElectionDisabled(t *testing.T) {
    	client := fake.NewSimpleClientset()
    	watcher := &fakeDefaultWatcher{}
    	// Prevent LeaderElection from creating a lease, so that the runFn only runs
    	// if leader election is disabled.
    	client.Fake.PrependReactor("*", "*", func(action k8stesting.Action) (bool, runtime.Object, error) {
    		return true, nil, fmt.Errorf("nope, out of luck")
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. src/testing/sub_test.go

    				benchTime: durationOrCountFlag{d: 1 * time.Microsecond},
    			}
    			if tc.chatty {
    				root.chatty = newChattyPrinter(root.w)
    			}
    			root.runN(1)
    			if ok != !tc.failed {
    				t.Errorf("%s:ok: got %v; want %v", tc.desc, ok, !tc.failed)
    			}
    			if !ok != root.Failed() {
    				t.Errorf("%s:root failed: got %v; want %v", tc.desc, !ok, root.Failed())
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
Back to top