- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 220 for chdir (0.04 sec)
-
src/cmd/go/testdata/script/chdir.txt
go list -C ../strings stdout strings ! go list -C ../nonexist stderr 'chdir.*nonexist' # check for -C in subcommands with custom flag parsing # cmd/go/chdir_test.go handles the normal ones more directly. # go doc go doc -C ../strings HasPrefix # go env go env -C $OLD/custom GOMOD stdout 'custom[\\/]go.mod' ! go env -C ../nonexist stderr '^go: chdir ../nonexist: ' # go test go test -C ../strings -n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 744 bytes - Viewed (0) -
src/cmd/go/chdir_test.go
// Test that every command either has a -C flag registered // or has CustomFlags set. In the latter case, the command // must be explicitly tested in TestScript/chdir. script, err := os.ReadFile("testdata/script/chdir.txt") if err != nil { t.Fatal(err) } var walk func(string, *base.Command) walk = func(name string, cmd *base.Command) { if len(cmd.Commands) > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 12:16:35 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/pwd_plan9.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 413 bytes - Viewed (0) -
src/syscall/pwd_plan9.go
return } wdSet = true wdStr = wd return wd, nil } func Chdir(path string) error { // If Chdir is to a relative path, sync working dir first if fixwd(path) { defer runtime.UnlockOSThread() } wdmu.Lock() defer wdmu.Unlock() runtime.LockOSThread() defer runtime.UnlockOSThread() if err := chdir(path); err != nil { return err } wd, err := getwd() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 2.3K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_testing_databases.py
# TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_testing_dbs(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./test.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 788 bytes - Viewed (0) -
src/os/exec/lp_unix_test.go
//go:build unix package exec_test import ( "os" "os/exec" "testing" ) func TestLookPathUnixEmptyPath(t *testing.T) { // Not parallel: uses Chdir and Setenv. tmp := t.TempDir() chdir(t, tmp) f, err := os.OpenFile("exec_me", os.O_CREATE|os.O_EXCL, 0700) if err != nil { t.Fatal("OpenFile failed: ", err) } err = f.Close() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 18:19:21 UTC 2023 - 762 bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py
@needs_py39 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./test.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 822 bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_testing_databases_py310.py
@needs_py310 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory): tmp_path = tmp_path_factory.mktemp("data") cwd = os.getcwd() os.chdir(tmp_path) test_db = Path("./test.db") if test_db.is_file(): # pragma: nocover test_db.unlink() # Import while creating the client to create the DB after starting the test session
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 825 bytes - Viewed (0) -
src/runtime/cgo/gcc_darwin_arm64.c
fprintf(stderr, "runtime/cgo: bad URL: %s\n", buf); return; } buf[url_len-sizeof("/Info.plist")+1] = 0; char *dir = &buf[0] + sizeof("file://")-1; if (chdir(dir) != 0) { fprintf(stderr, "runtime/cgo: chdir(%s) failed\n", dir); } // The test harness in go_ios_exec passes the relative working directory // in the GoExecWrapperWorkingDirectory property of the app bundle.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 03:13:11 UTC 2023 - 3.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 373 bytes - Viewed (0)