<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/os/exec/exec_test.go, branch fix-runtime-test-GOMAXPROCS</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=fix-runtime-test-GOMAXPROCS'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-05-19T18:00:01Z</updated>
<entry>
<title>runtime: pass through -asan/-msan/-race to testprog tests</title>
<updated>2025-05-19T18:00:01Z</updated>
<author>
<name>Michael Pratt</name>
<email>mpratt@google.com</email>
</author>
<published>2025-01-22T22:18:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=2c929d6f4c8fcd1021dc3cd57b2eedff5ae9a592'/>
<id>urn:sha1:2c929d6f4c8fcd1021dc3cd57b2eedff5ae9a592</id>
<content type='text'>
The tests using testprog / testprogcgo are currently not covered on the
asan/msan/race builders because they don't build testprog with the
sanitizer flag.

Explicitly pass the flag if the test itself is built with the sanitizer.

There were a few tests that explicitly passed -race (even on non-race
builders). These tests will now only run on race builders.

For #71395.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-asan-clang15,gotip-linux-amd64-msan-clang15,gotip-linux-amd64-race
Change-Id: I6a6a636ce8271246316a80d426c0e4e2f6ab99c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/643897
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Auto-Submit: Michael Pratt &lt;mpratt@google.com&gt;
</content>
</entry>
<entry>
<title>all: use t.Chdir in tests</title>
<updated>2024-09-04T00:52:28Z</updated>
<author>
<name>Kir Kolyshkin</name>
<email>kolyshkin@gmail.com</email>
</author>
<published>2023-09-08T00:21:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a00195d304e6858406c6c9c961d253eeb8cb0aec'/>
<id>urn:sha1:a00195d304e6858406c6c9c961d253eeb8cb0aec</id>
<content type='text'>
Change-Id: I5bc514bedeb1155e6db52e37736fd6101774aea0
Reviewed-on: https://go-review.googlesource.com/c/go/+/529896
Auto-Submit: Ian Lance Taylor &lt;iant@golang.org&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Commit-Queue: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>math,os,os/*: use testenv.Executable</title>
<updated>2024-09-03T20:11:30Z</updated>
<author>
<name>Kir Kolyshkin</name>
<email>kolyshkin@gmail.com</email>
</author>
<published>2024-08-30T02:51:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c3f346a485f2fa97a7bdee82d587419b3823a1ba'/>
<id>urn:sha1:c3f346a485f2fa97a7bdee82d587419b3823a1ba</id>
<content type='text'>
As some callers don't have a testing context, modify testenv.Executable
to accept nil (similar to how testenv.GOROOT works).

Change-Id: I39112a7869933785a26b5cb6520055b3cc42b847
Reviewed-on: https://go-review.googlesource.com/c/go/+/609835
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>os/exec: only use cachedLookExtensions if Cmd.Path is unmodified</title>
<updated>2024-07-07T16:40:57Z</updated>
<author>
<name>Dmitri Shuralyov</name>
<email>dmitshur@golang.org</email>
</author>
<published>2024-07-04T22:07:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=d0146bd85bb6870aa43a498b06ccb473af55cbe3'/>
<id>urn:sha1:d0146bd85bb6870aa43a498b06ccb473af55cbe3</id>
<content type='text'>
Caching the invocation of lookExtensions on an absolute path in Command
and reusing the cached result in Start is only viable if Cmd.Path isn't
set to a different value after Command returns.

For #66586.
Fixes #68314.

Change-Id: I57007850aca2011b11344180c00faded737617b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/596875
Reviewed-by: qiu laidongfeng2 &lt;2645477756@qq.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>os/exec: on Windows look for extensions in Run if not already done</title>
<updated>2024-06-07T20:13:53Z</updated>
<author>
<name>qiulaidongfeng</name>
<email>2645477756@qq.com</email>
</author>
<published>2024-06-05T19:06:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=5532427c4b1c5e962ad5484258be0071bd270e53'/>
<id>urn:sha1:5532427c4b1c5e962ad5484258be0071bd270e53</id>
<content type='text'>
CL 512155 fixed #36768, but introduced #62596.
CL 527820 fixed #62596, but meant that the code failed to look up
file extensions on Windows for a relative path.
This CL fixes that problem by recording whether it has already
looked up file extensions.
This does mean that if Path is set manually then we do not update
it with file extensions, as doing that would be racy.

Fixes #66586

Change-Id: I9a0305d1e466c5e07bfbe442566ea12f5255a96e
GitHub-Last-Rev: dc3169f2350f61acac5ef7842b7514013abacbe1
GitHub-Pull-Request: golang/go#67035
Reviewed-on: https://go-review.googlesource.com/c/go/+/581695
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>all: fix a large number of comments</title>
<updated>2024-03-26T19:58:28Z</updated>
<author>
<name>cui fliter</name>
<email>imcusg@gmail.com</email>
</author>
<published>2024-03-22T15:31:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1e12eab8705d1d8d7472be9147a39caa1c8380db'/>
<id>urn:sha1:1e12eab8705d1d8d7472be9147a39caa1c8380db</id>
<content type='text'>
Partial typo corrections, following https://go.dev/wiki/Spelling

Change-Id: I2357906ff2ea04305c6357418e4e9556e20375d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/573776
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
Run-TryBot: shuang cui &lt;imcusg@gmail.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>os/exec: remove unnecessary fmt.Sprintf call</title>
<updated>2024-03-04T15:53:53Z</updated>
<author>
<name>guoguangwu</name>
<email>guoguangwug@gmail.com</email>
</author>
<published>2024-03-01T10:11:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1f1fcc34736087db4d385abf26b4ec0ef64193a1'/>
<id>urn:sha1:1f1fcc34736087db4d385abf26b4ec0ef64193a1</id>
<content type='text'>
Change-Id: Ic0ac97a15dadd756d727fd8abe23359b0347af19
GitHub-Last-Rev: a96a3f5fe7fbfb41f38acadab3c03c4a76c89b78
GitHub-Pull-Request: golang/go#66052
Reviewed-on: https://go-review.googlesource.com/c/go/+/568317
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Jorropo &lt;jorropo.pgm@gmail.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>std: fix more nilness findings</title>
<updated>2024-02-26T22:01:11Z</updated>
<author>
<name>Alan Donovan</name>
<email>adonovan@google.com</email>
</author>
<published>2024-02-14T22:17:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f8b4653500744da567767b641378193638d4fcf8'/>
<id>urn:sha1:f8b4653500744da567767b641378193638d4fcf8</id>
<content type='text'>
(found with x/tools/go/analysis/passes/nilness)

Change-Id: I1bdc7811efbecea95608e634f894cb6c656e3a5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/564221
Reviewed-by: Robert Griesemer &lt;gri@google.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>os/exec: avoid writing to Cmd.Path in Cmd.Start on Windows</title>
<updated>2023-09-13T19:25:41Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2023-09-13T13:58:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=36facaa1f9a24175f0fbe4fe5f479bbfb67d05e9'/>
<id>urn:sha1:36facaa1f9a24175f0fbe4fe5f479bbfb67d05e9</id>
<content type='text'>
Fixes #62596.

Change-Id: I9003318ac1c4e3036f32383e62e9ba08c383d5c2
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-race,gotip-windows-amd64-race,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/527820
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>os/exec: simplify Windows-specific tests</title>
<updated>2023-09-13T18:19:21Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2023-09-12T18:50:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=105f9d51691d996c1698811ca3906b505639f49b'/>
<id>urn:sha1:105f9d51691d996c1698811ca3906b505639f49b</id>
<content type='text'>
- Use the test binary itself for printing paths instead of building a
  separate binary and running it through additional subprocesses.

- Factor out a common chdir helper.

- Use t.Setenv where appropriate.

- Reduce indirection in test helpers.

- Set NoDefaultCurrentDirectoryInExePath consistently in the
  environment.

Also add a test case demonstrating an interesting behavior for
relative paths that may interact with #62596.

Fixes #62594.
For #62596.

Change-Id: I19b9325034edf78cd0ca747594476cd7432bb451
Reviewed-on: https://go-review.googlesource.com/c/go/+/528035
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
</feed>
