Skip to content

Commit f07a9e4

Browse files
committed
os test: do not use symlink > 255 bytes.
Fixes #62. R=r https://golang.org/cl/152080
1 parent ae39a1d commit f07a9e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pkg/os/os_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ func TestSymLink(t *testing.T) {
297297

298298
func TestLongSymlink(t *testing.T) {
299299
s := "0123456789abcdef";
300-
s = s + s + s + s + s + s + s + s + s + s + s + s + s + s + s + s + s;
300+
// Long, but not too long: a common limit is 255.
301+
s = s + s + s + s + s + s + s + s + s + s + s + s + s + s + s;
301302
from := "longsymlinktestfrom";
302303
err := Symlink(s, from);
303304
if err != nil {

0 commit comments

Comments
 (0)