From: Damien Neil Date: Thu, 17 Nov 2022 01:33:03 +0000 (-0800) Subject: path/filepath: remove IsLocal tests dependent on Windows version X-Git-Tag: go1.20rc1~198 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b138e71e5b90c75e6e5239fb8f4536c6dcc31c36;p=gostls13.git 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 TryBot-Result: Gopher Robot Run-TryBot: Damien Neil Reviewed-by: Bryan Mills --- 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},