Skip to content

path/filepath: calling Rel hangs my program #13258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexbrainman opened this issue Nov 16, 2015 · 1 comment
Closed

path/filepath: calling Rel hangs my program #13258

alexbrainman opened this issue Nov 16, 2015 · 1 comment

Comments

@alexbrainman
Copy link
Member

reported by @0xmohit here #10802 (comment)

Oddly enough, something like

filepath.Rel(`C:\tmp`, `C:\TMP`)

hangs on my Win7 box using tip. The problem doesn't happen with Go 1.5.1. Adding a couple of tests:

diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go
index 057aa6a..3a11ec4 100644
--- a/src/path/filepath/path_test.go
+++ b/src/path/filepath/path_test.go
@@ -1034,6 +1034,8 @@ var winreltests = []RelTests{
        {`C:\`, `D:\`, `err`},
        {`C:`, `D:`, `err`},
        {`C:\Projects`, `c:\projects\src`, `src`},
+       {`C:\Projects`, `C:\projects`, `.`},
+       {`C:\Projects`, `c:\projects`, `.`},
 }

 func TestRel(t *testing.T) {

cause path tests to timeout after 6m0s when executing all.bat.

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/16857 mentions this issue.

@golang golang locked and limited conversation to collaborators Nov 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants