1
0
mirror of https://github.com/golang/go synced 2024-11-25 23:07:58 -07:00

Remove destination of symlink test in case it got left behind

earlier.

R=rsc
CC=golang-dev
https://golang.org/cl/972045
This commit is contained in:
Ian Lance Taylor 2010-04-28 11:08:07 -07:00
parent 000ab98df6
commit 96179629ef

View File

@ -301,6 +301,7 @@ func TestLongSymlink(t *testing.T) {
// Long, but not too long: a common limit is 255. // Long, but not too long: a common limit is 255.
s = s + s + s + s + s + s + s + s + s + s + s + s + s + s + s s = s + s + s + s + s + s + s + s + s + s + s + s + s + s + s
from := "longsymlinktestfrom" from := "longsymlinktestfrom"
Remove(from) // Just in case.
err := Symlink(s, from) err := Symlink(s, from)
if err != nil { if err != nil {
t.Fatalf("symlink %q, %q failed: %v", s, from, err) t.Fatalf("symlink %q, %q failed: %v", s, from, err)