diff --git a/src/path/filepath/path_windows_test.go b/src/path/filepath/path_windows_test.go index 2ec5f5ef4404d4..e36a3c9b646367 100644 --- a/src/path/filepath/path_windows_test.go +++ b/src/path/filepath/path_windows_test.go @@ -79,7 +79,7 @@ func testWinSplitListTestIsValid(t *testing.T, ti int, tt SplitListTest, cmd := &exec.Cmd{ Path: comspec, Args: []string{`/c`, cmdfile}, - Env: []string{`Path=` + tt.list, `SystemRoot=` + systemRoot}, + Env: []string{`Path=` + systemRoot + "/System32;" + tt.list, `SystemRoot=` + systemRoot}, Dir: tmp, } out, err := cmd.CombinedOutput()