Skip to content

Commit 9d06299

Browse files
committed
runtime/debug: stack test fail when GOROOT='/usr/local/go/'
Signed-off-by: guoguangwu <[email protected]>
1 parent 117164f commit 9d06299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/debug/stack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func TestStack(t *testing.T) {
105105
}
106106
filePrefix := ""
107107
if fileGoroot != "" {
108-
filePrefix = filepath.ToSlash(fileGoroot) + "/src/"
108+
filePrefix = filepath.ToSlash(filepath.Clean(fileGoroot)) + "/src/"
109109
}
110110

111111
n := 0

0 commit comments

Comments
 (0)