From 0375edd901f2807af29af95f60a06065c489708c Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Tue, 20 May 2025 17:02:11 -0700 Subject: [PATCH] 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 Auto-Submit: Alan Donovan Commit-Queue: Alan Donovan Reviewed-by: Richard Miller Reviewed-by: Alan Donovan --- src/os/os_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/os_test.go b/src/os/os_test.go index b2b98f3b52..281f13c7c9 100644 --- a/src/os/os_test.go +++ b/src/os/os_test.go @@ -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 { -- 2.50.0