]> Cypherpunks repositories - gostls13.git/commit
testing: use testenv.Executable
authorKir Kolyshkin <kolyshkin@gmail.com>
Fri, 30 Aug 2024 02:06:57 +0000 (19:06 -0700)
committerDamien Neil <dneil@google.com>
Tue, 3 Sep 2024 18:03:28 +0000 (18:03 +0000)
commit6fa224a80965a32228f9bc13cfe667af500d0a9d
treebc8fd767d201982bfe61651a8069f2df1216c90d
parentf26c29723f372284ff7dc0dbf30bae5561a3e618
testing: use testenv.Executable

Note that this changes some nuances of how the tests work:
 - some tests had a fallback to using os.Args[0], which is removed;
 - some tests skipped (rather than failed) the test upon getting an
   error from os.Executable.

I think these changes are not practically relevant.

Change-Id: I0655add6d959a8b7e3359f94c38203aa06e8f490
Reviewed-on: https://go-review.googlesource.com/c/go/+/609303
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/testing/flag_test.go
src/testing/helper_test.go
src/testing/testing_test.go