- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,050 for getwd (0.09 sec)
-
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) -
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) -
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) -
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) -
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) -
misc/ios/go_ios_exec.go
out, err := exec.Command("cp", "-a", src, dst).CombinedOutput() if err != nil { os.Stderr.Write(out) } return err } func copyLocalData(dstbase string) (pkgpath string, err error) { cwd, err := os.Getwd() if err != nil { return "", err } finalPkgpath, underGoRoot, err := subdir() if err != nil { return "", err } cwd = strings.TrimSuffix(cwd, finalPkgpath)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 23.4K bytes - Viewed (0) -
src/crypto/tls/bogo_shim_test.go
var j struct { Dir string } if err := json.Unmarshal(output, &j); err != nil { t.Fatalf("failed to parse 'go mod download' output: %s", err) } bogoDir = j.Dir } cwd, err := os.Getwd() if err != nil { t.Fatal(err) } resultsFile := filepath.Join(t.TempDir(), "results.json") args := []string{ "test", ".",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:25:39 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/dist/util.go
// to the user. select {} } } // xgetwd returns the current directory. func xgetwd() string { wd, err := os.Getwd() if err != nil { fatalf("%s", err) } return wd } // xrealwd returns the 'real' name for the given path. // real is defined as what xgetwd returns in that directory. func xrealwd(path string) string { old := xgetwd() if err := os.Chdir(path); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 17:50:29 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/plugin_test.go
return m.Run() } if !testenv.HasCGO() { globalSkip = func(t *testing.T) { t.Skip("cgo not supported") } return m.Run() } cwd, err := os.Getwd() if err != nil { log.Fatal(err) } goroot = filepath.Join(cwd, "../../../../..") // Copy testdata into GOPATH/src/testplugin, along with a go.mod file // declaring the same path.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 12.3K bytes - Viewed (0) -
src/cmd/go/proxy_test.go
data = f.Data break } } var info struct{ Short string } json.Unmarshal(data, &info) return info.Short } var archiveCache par.Cache[string, *txtar.Archive] var cmdGoDir, _ = os.Getwd() func readArchive(path, vers string) (*txtar.Archive, error) { enc, err := module.EscapePath(path) if err != nil { return nil, err } encVers, err := module.EscapeVersion(vers) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 03 09:56:24 UTC 2023 - 12K bytes - Viewed (0)