1
0
mirror of https://github.com/golang/go synced 2024-09-29 12:04:28 -06:00

path/filepath: remove IsLocal tests dependent on Windows version

Don't test IsLocal("nul.txt"), since whether this name is reserved
or not is version-dependent.

Change-Id: Ifff3edc77454e052080e325871c08bbba49e692c
Reviewed-on: https://go-review.googlesource.com/c/go/+/451222
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
Damien Neil 2022-11-16 17:33:03 -08:00
parent fdd8f0219d
commit b138e71e5b

View File

@ -167,10 +167,8 @@ var winislocaltests = []IsLocalTest{
{"NUL", false},
{"nul", false},
{"nul.", false},
{"nul.txt", false},
{"com1", false},
{"./nul", false},
{"a/nul.txt/b", false},
{`\`, false},
{`\a`, false},
{`C:`, false},