tests: symlink to "/" instead of "/etc/motd"

This file does not exist on all systems, causing spurious
test failures.

See #40, #43
This commit is contained in:
Jakob Unterwurzacher 2016-10-04 22:01:47 +02:00
parent 95db38912b
commit 67a959eebf

View File

@ -556,7 +556,7 @@ func TestLongNames(t *testing.T) {
}
// Long symlink
n255s := string(bytes.Repeat([]byte("s"), 255))
err = os.Symlink("/etc/motd", wd+n255s)
err = os.Symlink("/", wd+n255s)
if err != nil {
t.Fatal(err)
}