os: new test TestRootRemoveDot fails on plan9 #73863
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Plan9
Milestone
CL 661595 added TestRootRemoveDot which fails on Plan 9:
@neild, what is the purpose of this test? It appears to be checking that file "." can't be removed, in the context of
os.Root
where file dot means the directory opened byOpenRoot
(not the current working directory as one might normally expect).I can't find anything in the package documentation for
Root
that says dot can't be removed. On linux, it seems to be the case as a side effect of the implementation holding an open file descriptor for dot, but on Plan 9 there are no restrictions on deleting an open directory. So it seems to me that this test is checking for an operating system artefact, not checking for correct go behaviour.The text was updated successfully, but these errors were encountered: