]> Cypherpunks repositories - gostls13.git/commit
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>
Sat, 10 Dec 2022 00:35:24 +0000 (00:35 +0000)
commit9b8750f53ed89fb326e4d811524e647683136bac
treea4d6e03fa124a6d9342d90ad2f28aedc9855c668
parente8f78cb60caab4f7ca8d0f4c424f14cc74ab49a4
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.

Fixes #57210

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>
src/os/os_test.go