Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 658 for getwd (0.05 sec)

  1. src/os/error_test.go

    	}
    	if s := checkErrorPredicate("os.IsExist", os.IsExist, err, fs.ErrExist); s != "" {
    		t.Fatal(s)
    	}
    }
    
    func testErrNotExist(t *testing.T, name string) string {
    	originalWD, err := os.Getwd()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	f, err := os.Open(name)
    	if err == nil {
    		f.Close()
    		return "Open should have failed"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 00:41:52 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/syscall/syscall_js.go

    }
    
    func Sysctl(key string) (string, error) {
    	if key == "kern.hostname" {
    		return "js", nil
    	}
    	return "", ENOSYS
    }
    
    const ImplementsGetwd = true
    
    func Getwd() (wd string, err error) {
    	var buf [PathMax]byte
    	n, err := Getcwd(buf[0:])
    	if err != nil {
    		return "", err
    	}
    	return string(buf[:n]), nil
    }
    
    func Getuid() int {
    	return jsProcess.Call("getuid").Int()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/syscall/syscall_windows_test.go

    	if err != nil {
    		t.Skipf("Chdir failed: %v", err)
    	}
    	// Change out of the temporary directory so that we don't inhibit its
    	// removal during test cleanup.
    	defer os.Chdir(`\`)
    
    	syscall.Getwd()
    }
    
    func TestGetStartupInfo(t *testing.T) {
    	var si syscall.StartupInfo
    	err := syscall.GetStartupInfo(&si)
    	if err != nil {
    		// see https://go.dev/issue/31316
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:33:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/os/path_windows_test.go

    	// is exercised even if long path are supported by the system, else the
    	// function might not be tested at all if/when all test builders support long paths.
    	cwd, err := os.Getwd()
    	if err != nil {
    		t.Fatal("cannot get cwd")
    	}
    	drive := strings.ToLower(filepath.VolumeName(cwd))
    	cwd = strings.ToLower(cwd[len(drive)+1:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:37:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcweb/script.go

    			if !ok {
    				return nil, fmt.Errorf("unrecognized VCS %q", name)
    			}
    			sc.handlerName = name
    			if !h.Available() {
    				return nil, ServerNotInstalledError{name}
    			}
    
    			dir := st.Getwd()
    			if len(args) >= 2 {
    				dir = st.Path(args[1])
    			}
    			sc.handler, err = h.Handler(dir, st.Environ(), sc.server.logger)
    			return nil, err
    		})
    }
    
    func scriptModzip() script.Cmd {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 08 19:37:03 UTC 2022
    - 9K bytes
    - Viewed (0)
  6. pkg/bootstrap/config_test.go

    	expectWorkloadName := "workload"
    	expectExitOnZeroActiveConnections := model.StringBool(true)
    
    	t.Setenv(IstioMetaPrefix+"OWNER", inputOwner)
    	t.Setenv(IstioMetaPrefix+"WORKLOAD_NAME", inputWorkloadName)
    
    	dir, _ := os.Getwd()
    	defer os.Chdir(dir)
    	// prepare a pod label file
    	tempDir := t.TempDir()
    	os.Chdir(tempDir)
    	os.MkdirAll("./etc/istio/pod/", os.ModePerm)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. src/path/filepath/match_test.go

    		p = strings.Replace(p, `\`, `*\`, 1)
    		p = strings.Replace(p, `:`, `:\`, 1)
    		if err := test.globAbs(tmpDir, p); err != nil {
    			t.Error(err)
    		}
    	}
    
    	// test relative paths
    	wd, err := os.Getwd()
    	if err != nil {
    		t.Fatal(err)
    	}
    	err = os.Chdir(tmpDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer func() {
    		err := os.Chdir(wd)
    		if err != nil {
    			t.Fatal(err)
    		}
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java

            assertThat(dl.getLifeCycles().get(0).getId(), is("clean"));
            assertThat(dl.getLifeCycles().get(1).getId(), is("default"));
            assertThat(dl.getLifeCycles().get(2).getId(), is("site"));
            assertThat(dl.getLifeCycles().get(3).getId(), is("wrapper"));
            assertThat(dl.getLifeCycles().get(4).getId(), is("etl"));
        }
    
        private Lifecycle getLifeCycleById(String id) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/operations/OperationIdentifierTest.groovy

        def "allows instantiation with non-zero values"() {
            expect:
            new OperationIdentifier(-1).getId() == -1
            new OperationIdentifier(1).getId() == 1
            new OperationIdentifier(Long.MAX_VALUE).getId() == Long.MAX_VALUE
            new OperationIdentifier(Long.MIN_VALUE).getId() == Long.MIN_VALUE
        }
    
        def "disallows instantiation with a value of 0"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/use/resolve/internal/ArtifactRepositoriesPluginResolver.java

                PluginCoordinates altCoords = pluginRequest.getAlternativeCoordinates().orElse(null);
                if (altCoords != null && pluginManager.hasPlugin(altCoords.getId().getId())) {
                    return;
                }
    
                pluginManager.apply(pluginRequest.getId().getId());
            }
        }
    
        private PluginResolutionResult handleNotFound(String message) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:20:28 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top