]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.19] os: skip size test in TestLstat if the file is a symlink
authorIan Lance Taylor <iant@golang.org>
Fri, 9 Dec 2022 19:22:32 +0000 (11:22 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 14 Dec 2022 20:48:40 +0000 (20:48 +0000)
commit45ba8ba9f60da6f9f70716b4b7b1eda4daa481b5
treeab2eb1e2e025f0b373dcdb07a8d47e0386cae4dd
parent926ffba40bb44ef931d4b7397bd381b417cbbc9b
[release-branch.go1.19] os: skip size test in TestLstat if the file is a symlink

Tested by temporarily changing sysdir to use a directory where
the expected files were all symlinks. We should consider using
a different approach that doesn't rely on sysdir, but for now
do a minimal fix.

For #57210
Fixes #57214

Change-Id: Ifb1becef03e014ceb48290ce13527b3e103c0e07
Reviewed-on: https://go-review.googlesource.com/c/go/+/456557
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 9b8750f53ed89fb326e4d811524e647683136bac)
Reviewed-on: https://go-review.googlesource.com/c/go/+/456560
Reviewed-by: Austin Clements <austin@google.com>
src/os/os_test.go