]> Cypherpunks repositories - gostls13.git/commit
testing: use temp dir without symlinks in TestChdir/relative
authorDmitri Shuralyov <dmitshur@golang.org>
Tue, 20 Aug 2024 14:07:05 +0000 (10:07 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 20 Aug 2024 17:15:47 +0000 (17:15 +0000)
commitb292799ddd0e81ef6ffbbe5c7972786673d122f9
tree05fc7c7596516221091b2da0f5e409cca851beeb
parent98ed865a9e7525f7a30ec7fc7b360a45e966bf90
testing: use temp dir without symlinks in TestChdir/relative

When paths with symlinks are involved, it's not viable to compare them
with string equality. Don't use a temporary directory with symlinks in
it as input, so the test works in more environments.

For #62516.

Change-Id: I95d774365cc2f90eb0ffcffa61229ed5cee43e3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/607035
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/testing/testing_test.go