Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Cwd (0.41 sec)

  1. src/os/path_windows_test.go

    		{`\long\..\foo.txt`, `\\?\C:\foo.txt`},
    
    		// Relative
    		{`long\foo.txt`, `\\?\C:\cwd\long\foo.txt`},
    		{`long/foo.txt`, `\\?\C:\cwd\long\foo.txt`},
    		{`long///foo.txt`, `\\?\C:\cwd\long\foo.txt`},
    		{`long\.\foo.txt`, `\\?\C:\cwd\long\foo.txt`},
    		{`long\..\foo.txt`, `\\?\C:\cwd\foo.txt`},
    		{`.\long\foo.txt`, `\\?\C:\cwd\long\foo.txt`},
    
    		// UNC Absolute
    		{`\\srv\share\long`, `\\?\UNC\srv\share\long`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/lockosthread.go

    		println("failed to chdir:", err.Error())
    		os.Exit(1)
    	}
    	// On systems other than Linux, cwd == "".
    	cwd, err := getcwd()
    	if err != nil {
    		println("failed to get cwd:", err.Error())
    		os.Exit(1)
    	}
    	if cwd != "" && cwd != "/" {
    		println("unexpected cwd", cwd, " wanted /")
    		os.Exit(1)
    	}
    
    	ready := make(chan bool, 1)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute3QualifiedStaticInstrumentationInDynamicGroovyWithoutIndyIntegrationTest.groovy

    package org.gradle.internal.cc.impl.inputs.process.instrument
    
    /**
     * Test cases for triple-argument {@code ProcessGroovyMethods.execute}:
     * <pre>
     *     ProcessGroovyMethod.execute("echo 123", env, cwd)
     *     ProcessGroovyMethod.execute(["echo", "123"]", env, cwd)
     * </pre>
     */
    class Execute3QualifiedStaticInstrumentationInDynamicGroovyWithoutIndyIntegrationTest extends Execute3QualifiedStaticInstrumentationInDynamicGroovyWithIndyIntegrationTest {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. cmd/gotemplate/gotemplate_test.go

    			expected: "hello\n  world",
    		},
    	} {
    		cwd, err := os.Getwd()
    		require.NoError(t, err)
    
    		t.Run(name, func(t *testing.T) {
    			tmp := t.TempDir()
    			for fileName, fileContent := range tt.files {
    				err := os.WriteFile(path.Join(tmp, fileName), []byte(fileContent), 0666)
    				require.NoError(t, err, "create input file")
    			}
    			defer os.Chdir(cwd)
    			require.NoError(t, os.Chdir(tmp), "change into tmp directory")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 22 13:43:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInJavaIntegrationTest.groovy

    class ProcessInstrumentationInJavaIntegrationTest extends AbstractProcessInstrumentationIntegrationTest {
        def "#title is intercepted in java build code"(VarInitializer varInitializer) {
            given:
            def cwd = testDirectory.file(expectedPwdSuffix)
            file("buildSrc/src/main/java/SneakyPlugin.java") << """
            import org.gradle.api.*;
            import java.io.*;
            import java.util.*;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. src/net/http/cgi/cgi_main.go

    	keys = make([]string, 0, len(envs))
    	for k := range envs {
    		keys = append(keys, k)
    	}
    	slices.Sort(keys)
    	for _, key := range keys {
    		fmt.Printf("env-%s=%s\r\n", key, envs[key])
    	}
    
    	cwd, _ := os.Getwd()
    	fmt.Printf("cwd=%s\r\n", cwd)
    }
    
    type neverEnding byte
    
    func (b neverEnding) Read(p []byte) (n int, err error) {
    	for i := range p {
    		p[i] = byte(b)
    	}
    	return len(p), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute3InstanceInstrumentationInDynamicGroovyWithoutIndyIntegrationTest.groovy

    package org.gradle.internal.cc.impl.inputs.process.instrument
    
    /**
     * Test cases for triple-argument String and String collection {@code execute} extension:
     * <pre>
     *     "echo 123".execute(env, cwd)
     *     ["echo", "123"].execute(env, cwd)
     * </pre>
     */
    class Execute3InstanceInstrumentationInDynamicGroovyWithoutIndyIntegrationTest extends Execute3InstanceInstrumentationInDynamicGroovyWithIndyIntegrationTest {
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/RuntimeExec3InstrumentationInDynamicGroovyWithoutIndyIntegrationTest.groovy

     */
    
    package org.gradle.internal.cc.impl.inputs.process.instrument
    
    /**
     * Test cases for triple-argument {@code Runtime.exec}:
     * <pre>
     *     Runtime.getRuntime().exec("echo 123", env, cwd)
     *     Runtime.getRuntime().exec(["echo", "123"], env, cwd)
     * </pre>
     */
    class RuntimeExec3InstrumentationInDynamicGroovyWithoutIndyIntegrationTest extends RuntimeExec3InstrumentationInDynamicGroovyWithIndyIntegrationTest {
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationInDynamicGroovyIntegrationTest.groovy

            given:
            def cwd = testDirectory.file(expectedPwdSuffix)
            withPluginCode("""
                    import org.codehaus.groovy.runtime.ProcessGroovyMethods
                    import static org.codehaus.groovy.runtime.ProcessGroovyMethods.execute
                """, """
                    ${varInitializer.getGroovy(baseScript.getRelativeCommandLine(cwd))}
                    def process = $processCreator
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute3StaticInstrumentationInDynamicGroovyWithoutIndyIntegrationTest.groovy

     * <pre>
     *     import static org.codehaus.groovy.runtime.ProcessGroovyMethods.execute
     *     execute("echo 123", env, cwd)
     *     execute(["echo", "123"], env, cwd)
     * </pre>
     */
    class Execute3StaticInstrumentationInDynamicGroovyWithoutIndyIntegrationTest extends Execute3StaticInstrumentationInDynamicGroovyWithIndyIntegrationTest {
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top