]> Cypherpunks repositories - gostls13.git/commitdiff
Remove destination of symlink test in case it got left behind
authorIan Lance Taylor <iant@golang.org>
Wed, 28 Apr 2010 18:08:07 +0000 (11:08 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 28 Apr 2010 18:08:07 +0000 (11:08 -0700)
earlier.

R=rsc
CC=golang-dev
https://golang.org/cl/972045

src/pkg/os/os_test.go

index f4ccb524c14eb33915a7b84df146314c70e4a234..5fb599265ea7921a182f968d68e07c344f1a952f 100644 (file)
@@ -301,6 +301,7 @@ func TestLongSymlink(t *testing.T) {
        // 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
        from := "longsymlinktestfrom"
+       Remove(from) // Just in case.
        err := Symlink(s, from)
        if err != nil {
                t.Fatalf("symlink %q, %q failed: %v", s, from, err)