Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SYSTEMROOT (0.25 sec)

  1. src/os/exec/exec_windows_test.go

    // with a copy of the parent's SYSTEMROOT.
    // (See issue 25210.)
    func TestChildCriticalEnv(t *testing.T) {
    	t.Parallel()
    	cmd := helperCommand(t, "echoenv", "SYSTEMROOT")
    
    	// Explicitly remove SYSTEMROOT from the command's environment.
    	var env []string
    	for _, kv := range cmd.Environ() {
    		k, _, ok := strings.Cut(kv, "=")
    		if !ok || !strings.EqualFold(k, "SYSTEMROOT") {
    			env = append(env, kv)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 23:07:55 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/DefaultGradleRunner.java

                // Without the SystemRoot environment variable been defined, Gradle Runner doesn't work on Windows when requiring network
                // connections.
                effectiveEnvironment.put("SystemRoot", System.getenv("SystemRoot"));
            }
    
            effectiveArguments.addAll(arguments);
            if (environment != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. src/path/filepath/path_windows_test.go

    			return
    		}
    	}
    
    	// on some systems, SystemRoot is required for cmd to work
    	systemRoot := os.Getenv("SystemRoot")
    
    	for i, d := range tt.result {
    		if d == "" {
    			continue
    		}
    		exp := []byte(d + "\r\n")
    		cmd := &exec.Cmd{
    			Path: comspec,
    			Args: []string{`/c`, cmdfile},
    			Env:  []string{`Path=` + systemRoot + "/System32;" + tt.list, `SystemRoot=` + systemRoot},
    			Dir:  tmp,
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. build-logic/jvm/src/main/kotlin/gradlebuild/propagated-env-variables.kt

    
    val propagatedEnvironmentVariables = listOf(
        // Obviously necessary
        "HOME",
        "SHELL",
        "TERM",
    
        // Otherwise Windows complains "Unrecognized Windows Sockets error: 10106"
        "SystemRoot",
        "OS",
    
        // For Android tests
        "ANDROID_HOME",
        "ANDROID_SDK_ROOT",
        // legacy and new android user home
        "ANDROID_USER_HOME",
        "ANDROID_PREFS_ROOT",
    
        // Used by Visual Studio
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 18 01:52:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/crypto/x509/root_test.go

    			systemRoots:     NewCertPool(),
    			poolContent:     []*Certificate{{}},
    			forceFallback:   true,
    			returnsFallback: true,
    		},
    		{
    			name:            "filled systemRoot system pool, force fallback",
    			systemRoots:     NewCertPool(),
    			poolContent:     []*Certificate{{}},
    			systemPool:      true,
    			forceFallback:   true,
    			returnsFallback: true,
    		},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 23:57:10 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. src/internal/syscall/windows/registry/key.go

    //	k, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\Windows NT\CurrentVersion`, registry.QUERY_VALUE)
    //	if err != nil {
    //		log.Fatal(err)
    //	}
    //	defer k.Close()
    //
    //	s, _, err := k.GetStringValue("SystemRoot")
    //	if err != nil {
    //		log.Fatal(err)
    //	}
    //	fmt.Printf("Windows system root is %q\n", s)
    //
    // NOTE: This package is a copy of golang.org/x/sys/windows/registry
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/vcweb/script.go

    		"HGENCODING=utf-8",
    	}
    	// Preserve additional environment variables that may be needed by VCS tools.
    	for _, k := range []string{
    		pathEnvName(),
    		tempEnvName(),
    		"SYSTEMROOT",        // must be preserved on Windows to find DLLs; golang.org/issue/25210
    		"WINDIR",            // must be preserved on Windows to be able to run PowerShell command; golang.org/issue/30711
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 08 19:37:03 UTC 2022
    - 9K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/timeout/JavaProcessStackTracesMonitorSpec.groovy

            ]
        }
    
        @Requires(UnitTestPreconditions.Windows)
        def 'can extract process info from windows wmic'() {
            given:
            def output = '''
    CommandLine ProcessId
    \\SystemRoot\\System32\\smss.exe            244
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. src/net/http/cgi/host.go

    		return []string{"LD_LIBRARY_PATH", "LD_LIBRARYN32_PATH", "LD_LIBRARY64_PATH"}
    	case "illumos", "solaris":
    		return []string{"LD_LIBRARY_PATH", "LD_LIBRARY_PATH_32", "LD_LIBRARY_PATH_64"}
    	case "windows":
    		return []string{"SystemRoot", "COMSPEC", "PATHEXT", "WINDIR"}
    	}
    	return nil
    }()
    
    // Handler runs an executable in a subprocess with a CGI environment.
    type Handler struct {
    	Path string // path to the CGI executable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. src/os/exec/exec.go

    		return env
    	}
    	for _, kv := range env {
    		k, _, ok := strings.Cut(kv, "=")
    		if !ok {
    			continue
    		}
    		if strings.EqualFold(k, "SYSTEMROOT") {
    			// We already have it.
    			return env
    		}
    	}
    	return append(env, "SYSTEMROOT="+os.Getenv("SYSTEMROOT"))
    }
    
    // ErrDot indicates that a path lookup resolved to an executable
    // in the current directory due to ‘.’ being in the path, either
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top