mirror of https://github.com/golang/go.git
Merge a616066dbf into 49cdf0c42e
This commit is contained in:
commit
97bd041ee5
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue