- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 974 for getwd (0.06 sec)
-
src/cmd/go/internal/fsys/fsys_test.go
// json, and the files, in the archive are laid out in a temp directory // that cwd is set to. func initOverlay(t *testing.T, config string) { t.Helper() // Create a temporary directory and chdir to it. prevwd, err := os.Getwd() if err != nil { t.Fatal(err) } cwd = filepath.Join(t.TempDir(), "root") if err := os.Mkdir(cwd, 0777); err != nil { t.Fatal(err) } if err := os.Chdir(cwd); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:52:11 UTC 2023 - 29.1K bytes - Viewed (0) -
src/cmd/go/internal/script/cmds.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 28.5K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
if runInDir != "" { cmd.Dir = runInDir // Set PWD to match Dir to speed up os.Getwd in the child process. cmd.Env = append(cmd.Env, "PWD="+cmd.Dir) } else { // Default to running in the GOROOT/test directory. cmd.Dir = t.gorootTestDir // Set PWD to match Dir to speed up os.Getwd in the child process. cmd.Env = append(cmd.Env, "PWD="+cmd.Dir) } if tempDirIsGOPATH {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/html.go
out, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { f.Fatalf("%v", err) } reportPath := path if !filepath.IsAbs(reportPath) { pwd, err := os.Getwd() if err != nil { f.Fatalf("%v", err) } reportPath = filepath.Join(pwd, path) } html := HTMLWriter{ w: out, Func: f, path: reportPath, dot: newDotWriter(cfgMask), }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 34.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/carchive_test.go
os.Remove("libgo4.a") os.Remove("libgo4.h") os.Remove("testar") os.Remove("testar.ran") os.RemoveAll(filepath.Join(GOPATH, "pkg")) }() } os.Remove("testar") dir, err := os.Getwd() if err != nil { t.Fatal(err) } s := strings.Replace(testar, "PWD", dir, 1) if err := os.WriteFile("testar", []byte(s), 0777); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 34.8K bytes - Viewed (0) -
src/os/file.go
} if runtime.GOOS == "windows" { getwdCache.Lock() getwdCache.dir = dir getwdCache.Unlock() } if log := testlog.Logger(); log != nil { wd, err := Getwd() if err == nil { log.Chdir(wd) } } return nil } // Open opens the named file for reading. If successful, methods on // the returned file can be used for reading; the associated file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go
return "", err } return ByteSliceToString(buf[:vallen]), nil } const ImplementsGetwd = true //sys Getcwd(buf []byte) (n int, err error) func Getwd() (wd string, err error) { var buf [PathMax]byte // Getcwd will return an error if it failed for any reason. _, err = Getcwd(buf[0:]) if err != nil { return "", err } n := clen(buf[:]) if n < 1 { return "", EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 31.1K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
// See Issue 14959 func TestDLLPreloadMitigation(t *testing.T) { if _, err := exec.LookPath("gcc"); err != nil { t.Skip("skipping test: gcc is missing") } tmpdir := t.TempDir() dir0, err := os.Getwd() if err != nil { t.Fatal(err) } defer os.Chdir(dir0) const src = ` #include <stdint.h> #include <windows.h> uintptr_t cfunc(void) { SetLastError(123);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
}, Spec: spec, } } // defaultInstallPackageDir returns a path to a snapshot of the helm charts used for testing. func defaultInstallPackageDir() string { wd, err := os.Getwd() if err != nil { panic(err) } return filepath.Join(wd, "../../../manifests/")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1) -
src/syscall/syscall_linux.go
return Utimes("/proc/self/fd/"+itoa.Itoa(fd), tv) } const ImplementsGetwd = true //sys Getcwd(buf []byte) (n int, err error) func Getwd() (wd string, err error) { var buf [PathMax]byte n, err := Getcwd(buf[0:]) if err != nil { return "", err } // Getcwd returns the number of bytes written to buf, including the NUL. if n < 1 || n > len(buf) || buf[n-1] != 0 { return "", EINVAL
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 35.7K bytes - Viewed (0)