diff options
author | Russ Cox <rsc@golang.org> | 2009-11-11 14:52:29 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-11 14:52:29 -0800 |
commit | f07a9e43e8167f5091a1f0f951a3c4cb2e571313 (patch) | |
tree | ad70fa148fead651e9c14d73ff28c90a1e0636cc | |
parent | ae39a1d8ec1d476ea116c45210a507dca2192d19 (diff) | |
download | go-f07a9e43e8167f5091a1f0f951a3c4cb2e571313.tar.gz go-f07a9e43e8167f5091a1f0f951a3c4cb2e571313.zip |
os test: do not use symlink > 255 bytes.
Fixes #62.
R=r
https://golang.org/cl/152080
-rw-r--r-- | src/pkg/os/os_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/os/os_test.go b/src/pkg/os/os_test.go index 3066d57265..57081afb4e 100644 --- a/src/pkg/os/os_test.go +++ b/src/pkg/os/os_test.go @@ -297,7 +297,8 @@ func TestSymLink(t *testing.T) { func TestLongSymlink(t *testing.T) { s := "0123456789abcdef"; - s = s + s + s + s + s + s + s + s + s + s + s + s + s + s + s + s + s; + // 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"; err := Symlink(s, from); if err != nil { |