Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestProgWideChdir (0.11 sec)

  1. src/os/os_test.go

    			}
    			if !equal(pwd, d) {
    				fd.Close()
    				t.Fatalf("Getwd returned %q want %q", pwd, d)
    			}
    		}
    	}
    	fd.Close()
    }
    
    // Test that Chdir+Getwd is program-wide.
    func TestProgWideChdir(t *testing.T) {
    	const N = 10
    	var wg sync.WaitGroup
    	hold := make(chan struct{})
    	done := make(chan struct{})
    
    	d := t.TempDir()
    	oldwd, err := Getwd()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top