]> Cypherpunks.ru repositories - gostls13.git/commit
testing/fstest: avoid symlink-induced failures in tester
authorRuss Cox <rsc@golang.org>
Fri, 5 Feb 2021 15:55:12 +0000 (10:55 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 5 Feb 2021 21:03:18 +0000 (21:03 +0000)
commit4516afebedd18692c6dc70cbdee16a049c26024b
tree73f60f1ae16601cbaaa3d9688bea591f5ce81346
parent8869086d8f0a31033ccdc103106c768dc17216b1
testing/fstest: avoid symlink-induced failures in tester

Do not require directory entry and Stat result to match for symlinks,
because they won't (Stat dereferences the symlink).

Fixes #44113.

Change-Id: Ifc6dbce5719906e2f42254a7172f1ef787464a9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/290009
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/testing/fstest/testfs.go
src/testing/fstest/testfs_test.go [new file with mode: 0644]