- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 551 for getwd (0.11 sec)
-
src/cmd/go/scriptcmds_test.go
return script.Command( script.CmdUsage{ Summary: "run the platform C compiler", Args: "args...", }, func(s *script.State, args ...string) (script.WaitFunc, error) { b := work.NewBuilder(s.Getwd()) wait, err := cmdExec.Run(s, append(b.GccCmd(".", ""), args...)...) if err != nil { return wait, err } waitAndClean := func(s *script.State) (stdout, stderr string, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 18:33:17 UTC 2024 - 3.3K bytes - Viewed (0) -
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) -
test/linkobj.go
"log" "os" "os/exec" "strings" ) var pwd, tmpdir string func main() { dir, err := ioutil.TempDir("", "go-test-linkobj-") if err != nil { log.Fatal(err) } pwd, err = os.Getwd() if err != nil { log.Fatal(err) } if err := os.Chdir(dir); err != nil { os.RemoveAll(dir) log.Fatal(err) } tmpdir = dir writeFile("p1.go", ` package p1 func F() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 3.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)