]> Cypherpunks repositories - gostls13.git/commit
os: allow $HOME to not exist in TestUserHomeDir
authorBryan C. Mills <bcmills@google.com>
Thu, 8 Dec 2022 19:10:59 +0000 (14:10 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 31 Jan 2023 18:47:06 +0000 (18:47 +0000)
commitbb4ea80befa5f91aa50ccb170e0abdcbc0d01627
tree0b9e70c931f0717543b4a3d6625354d96c9de76a
parentdfd2ddd6717acb16b43ecde5150a7d8916ac5484
os: allow $HOME to not exist in TestUserHomeDir

This seems like a cleaner fix for the situation Debian has patched
around with
https://sources.debian.org/patches/golang-1.19/1.19.3-1/0001-Disable-test-for-UserHomeDir.patch/

Tested with 'GOCACHE=$(go env GOCACHE) HOME=/home/nobody go test os'.

Change-Id: I9fd00da38b86df2edfcd8cb87629e2875573903e
Reviewed-on: https://go-review.googlesource.com/c/go/+/456126
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/os/file.go
src/os/os_test.go