Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for GetEnv (0.23 sec)

  1. src/cmd/cgo/out.go

    }
    
    // gccgoToSymbol converts a name to a mangled symbol for gccgo.
    func gccgoToSymbol(ppath string) string {
    	if gccgoMangler == nil {
    		var err error
    		cmd := os.Getenv("GCCGO")
    		if cmd == "" {
    			cmd, err = exec.LookPath("gccgo")
    			if err != nil {
    				fatalf("unable to locate gccgo: %v", err)
    			}
    		}
    		gccgoMangler, err = pkgpath.ToSymbolFunc(cmd, *objDir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    	// QEMU is not perfect at emulating everything.
    	// IN_QEMU environmental variable is set by some of the Go builders.
    	// IN_QEMU=1 indicates that the tests are running in QEMU. See issue 9605.
    	if os.Getenv("IN_QEMU") == "1" {
    		t.Skip("ignore the failure in QEMU; see golang.org/issue/9605")
    	}
    	t.FailNow()
    	return nil
    }
    
    var diffCPUTimeImpl func(f func()) (user, system time.Duration)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    		// This means, of course, that users need to rm the old log
    		// to get fresh data.
    		// TODO: all.bash runs compilers in parallel. Need to synchronize logging somehow?
    		w, err := os.OpenFile(filepath.Join(os.Getenv("GOROOT"), "src", "rulelog"),
    			os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
    		if err != nil {
    			panic(err)
    		}
    		ruleFile = w
    	}
    	_, err := fmt.Fprintln(ruleFile, s)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    Starting with version 7.4 Gradle will implicitly treat an external value used at configuration time as a configuration cache input.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  5. src/testing/testing.go

    	}
    }
    
    // Setenv calls os.Setenv(key, value) and uses Cleanup to
    // restore the environment variable to its original value
    // after the test.
    //
    // Because Setenv affects the whole process, it cannot be used
    // in parallel tests or tests with parallel ancestors.
    func (c *common) Setenv(key, value string) {
    	c.checkFuzzFn("Setenv")
    	prevValue, ok := os.LookupEnv(key)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/crypto/tls/tls_test.go

    	t.Run("x509keypairleaf=0", func(t *testing.T) {
    		t.Setenv("GODEBUG", "x509keypairleaf=0")
    		cert, err := X509KeyPair(certPEM, keyPEM)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if cert.Leaf != nil {
    			t.Fatal("Leaf should not be populated")
    		}
    	})
    	t.Run("x509keypairleaf=1", func(t *testing.T) {
    		t.Setenv("GODEBUG", "x509keypairleaf=1")
    		cert, err := X509KeyPair(certPEM, keyPEM)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  7. src/go/types/api_test.go

    			}
    		})
    	}
    }
    
    func setGotypesalias(t *testing.T, enable bool) {
    	if enable {
    		t.Setenv("GODEBUG", "gotypesalias=1")
    	} else {
    		t.Setenv("GODEBUG", "gotypesalias=0")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/route/route_test.go

    		return out
    	}
    
    	gatewayNames := sets.New("some-gateway")
    
    	t.Run("for virtual service", func(t *testing.T) {
    		g := NewWithT(t)
    		cg := core.NewConfigGenTest(t, core.TestOptions{})
    
    		t.Setenv("ISTIO_DEFAULT_REQUEST_TIMEOUT", "0ms")
    
    		routes, err := route.BuildHTTPRoutesForVirtualService(node(cg), virtualServicePlain, serviceRegistry, nil, 8080, gatewayNames, route.RouteOptions{})
    		xdstest.ValidateRoutes(t, routes)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/api_test.go

    			t.Errorf("%q: got %s, want substring %q",
    				src, gotObjs, wantObjs)
    		}
    	}
    }
    
    // This is a regression test for #66704.
    func TestUnaliasTooSoonInCycle(t *testing.T) {
    	t.Setenv("GODEBUG", "gotypesalias=1")
    	const src = `package a
    
    var x T[B] // this appears to cause Unalias to be called on B while still Invalid
    
    type T[_ any] struct{}
    type A T[B]
    type B = T[A]
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top