Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CMDGO_TEST_RUN_MAIN (0.14 sec)

  1. src/cmd/go/go_test.go

    // deletes it after the tests have been run.
    func TestMain(m *testing.M) {
    	// When CMDGO_TEST_RUN_MAIN is set, we're reusing the test binary as cmd/go.
    	// Enable the special behavior needed in cmd/go/internal/work,
    	// run the main func exported via export_test.go, and exit.
    	// We set CMDGO_TEST_RUN_MAIN via os.Setenv and testScript.setup.
    	if os.Getenv("CMDGO_TEST_RUN_MAIN") != "" {
    		cfg.SetGOROOT(cfg.GOROOT, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top