summaryrefslogtreecommitdiff
path: root/src/path
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2022-11-16 17:33:03 -0800
committerDamien Neil <dneil@google.com>2022-11-17 02:24:38 +0000
commitb138e71e5b90c75e6e5239fb8f4536c6dcc31c36 (patch)
tree4db60ddf32b9629d0f19a62f50b385c3a87c0b8c /src/path
parentfdd8f0219d055f16647c8dfcd11e79cce222d200 (diff)
downloadgo-git-b138e71e5b90c75e6e5239fb8f4536c6dcc31c36.tar.gz
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>
Diffstat (limited to 'src/path')
-rw-r--r--src/path/filepath/path_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go
index 771416770e..89fd6cb5a2 100644
--- a/src/path/filepath/path_test.go
+++ b/src/path/filepath/path_test.go
@@ -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},