]> Cypherpunks repositories - gostls13.git/commit
os: use relative paths in a test dir in TestOpenError
authorDamien Neil <dneil@google.com>
Mon, 14 Oct 2024 22:30:13 +0000 (15:30 -0700)
committerDamien Neil <dneil@google.com>
Tue, 15 Oct 2024 17:23:27 +0000 (17:23 +0000)
commit70f4717e96cf9d8ca8a5f439d7d6487ec822ce49
tree05d7b89569a00828c0d2cd308c3375d8eec16307
parentcbdb3545ad7d15204ef15daf124393aefb7b2c3d
os: use relative paths in a test dir in TestOpenError

Refactor TestOpenError to use relative paths in test cases,
in preparation for extending it to test os.Root.

Use a test temporary directory instead of system directory
with presumed-known contents.

Move the testcase type and case definitions inline with the test.

For #67002

Change-Id: Idc53dd9fcecf763d3e4eb3b4643032e3003d7ef4
Reviewed-on: https://go-review.googlesource.com/c/go/+/620157
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/os/os_test.go