testing: TestChdir can fail on Windows when GOROOT and TMPDIR are on different drives #69159
Labels
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Windows
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
Go version
go version devel go1.24-9e8ea567c8 Wed Aug 28 21:03:29 2024 +0000 windows/amd64
Output of
go env
in your module/workspace:What did you do?
git clone https://github.com/golang/go.git
set GOROOT is git clone dir
cd src
all
What did you see happen?
test pass.
What did you expect to see?
--- FAIL: TestChdir (0.00s)
testing_test.go:303: Rel: can't make C:\Users\26454\AppData\Local\Temp\TestChdir3453836523\001 relative to D:\file\gofile\gogit\go1\src\testing
FAIL
FAIL testing 7.715s
FAIL
The text was updated successfully, but these errors were encountered: