os: skip TestOpenFileCreateExclDanglingSymlink when no symlinks

Skip this test on plan9, and any other platform that doesn't
have symlinks.

Fixes #73729

Change-Id: I8052db24ed54c3361530bd4f54c96c9d10c4714c
Reviewed-on: https://go-review.googlesource.com/c/go/+/674697
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Commit-Queue: Alan Donovan <adonovan@google.com>
Reviewed-by: Richard Miller <millerresearch@gmail.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Damien Neil 2025-05-20 17:02:11 -07:00 committed by Gopher Robot
parent 7f806c1052
commit 0375edd901
1 changed files with 1 additions and 0 deletions

View File

@ -2300,6 +2300,7 @@ func TestFilePermissions(t *testing.T) {
}
func TestOpenFileCreateExclDanglingSymlink(t *testing.T) {
testenv.MustHaveSymlink(t)
testMaybeRooted(t, func(t *testing.T, r *Root) {
const link = "link"
if err := Symlink("does_not_exist", link); err != nil {