]> Cypherpunks repositories - gostls13.git/commit
path/filepath: support multiple TestAbs runs on Windows
authorqmuntal <quimmuntal@gmail.com>
Fri, 23 Feb 2024 12:38:27 +0000 (13:38 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 26 Feb 2024 07:59:11 +0000 (07:59 +0000)
commit7db8b9e518311c1ee707a3f2fe6343e7c595c936
tree4bcbf16f01f05c4b765e85be5e5d49b15ee384e4
parent08d9397170e5870b72a95233e8e4ec43d2d70e30
path/filepath: support multiple TestAbs runs on Windows

TestAbs modifies the absTests global variable on Windows, which makes
the test to fail if it is run more than once, i.e. executing
"go test -run ^TestAbs$ -count 2 path/filepath".

This CL fixes the issue by clipping the absTests slices before
appending more elements to it.

Change-Id: I8f1144b2f10b8fa1b847e6639c0bda7baafc2dac
Reviewed-on: https://go-review.googlesource.com/c/go/+/566396
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/path/filepath/path_test.go