This commit is contained in:
guoguangwu 2025-06-20 15:30:43 -04:00 committed by GitHub
commit 97bd041ee5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -101,7 +101,12 @@ func TestStack(t *testing.T) {
} }
filePrefix := "" filePrefix := ""
if fileGoroot != "" { if fileGoroot != "" {
filePrefix = filepath.ToSlash(fileGoroot) + "/src/" fileGoroot = filepath.ToSlash(filepath.Clean(fileGoroot))
if fileGoroot == "/" {
filePrefix = "/src/"
} else {
filePrefix = fileGoroot + "/src/"
}
} }
n := 0 n := 0