]> Cypherpunks repositories - gostls13.git/commit
path/filepath: avoid assuming that GOROOT/test is present
authorBryan C. Mills <bcmills@google.com>
Fri, 16 Jun 2023 18:46:37 +0000 (14:46 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 16 Jun 2023 19:37:46 +0000 (19:37 +0000)
commitc1bc44642db321c2f125fd043c220cac08877e95
treecb05a273b9ba09ddac763d552f67982ae7a75805
parent9ece9a7ac9befbb8ee8f2241063a2389b730cdaf
path/filepath: avoid assuming that GOROOT/test is present

GOROOT/test is pruned out by cmd/distpack. It isn't really needed for
the test anyway; the test can instead use the "src/unicode" subdirectory,
which is even within the same module.

This test was previously adjusted in CL 13467045 and CL 31859.

Unlike in previous iterations of the test, the directories used in
this revision are covered by the Go 1 compatibility policy and thus
unlikely to disappear.

For #24904.

Change-Id: I156ae18354bcbc2ddd8d22b210f16ba1e97cd5d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/504116
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/path/filepath/path_test.go