<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/os/exec/exec_test.go, branch makepkg</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=makepkg</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=makepkg'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2026-01-12T21:57:21Z</updated>
<entry>
<title>os/exec_test: fix test on Plan 9</title>
<updated>2026-01-12T21:57:21Z</updated>
<author>
<name>Ori Bernstein</name>
<email>ori@eigenstate.org</email>
</author>
<published>2025-12-28T00:08:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b7e6d8b923ad06538c800d635d3ede90d3d0b782'/>
<id>urn:sha1:b7e6d8b923ad06538c800d635d3ede90d3d0b782</id>
<content type='text'>
Error strings vary across OSes when trying to execute a file
that does not exist. Since matching them is not the point of
the test, ignore them.

Fixes #76965

Change-Id: I6d220bc2d0289070f3441adb48983c13b2a3e597
Reviewed-on: https://go-review.googlesource.com/c/go/+/732940
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Richard Miller &lt;millerresearch@gmail.com&gt;
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
Auto-Submit: Alan Donovan &lt;adonovan@google.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
</content>
</entry>
<entry>
<title>os/exec: second call to Cmd.Start is always an error</title>
<updated>2025-12-22T18:43:07Z</updated>
<author>
<name>Alan Donovan</name>
<email>adonovan@google.com</email>
</author>
<published>2025-12-09T15:06:23Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=3d77a0b15ea2a6d2f7b3e2ba483f148d7c6ee174'/>
<id>urn:sha1:3d77a0b15ea2a6d2f7b3e2ba483f148d7c6ee174</id>
<content type='text'>
Previously it would return an error only if the first call
resulted in process creation, contra the intent of the
comment at exec.Cmd:

// A Cmd cannot be reused after calling its [Cmd.Start], [Cmd.Run],
// [Cmd.Output], or [Cmd.CombinedOutput] methods.

Also, clear the Cmd.goroutines slice in case of failure to
start a process, so that the closures can be GC'd and their
pipe fds finalized and closed.

Fixes #76746

Change-Id: Ic63a4dced0aa52c2d4be7d44f6dcfc84ee22282c
Reviewed-on: https://go-review.googlesource.com/c/go/+/728642
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Damien Neil &lt;dneil@google.com&gt;
</content>
</entry>
<entry>
<title>all: replace calls to errors.As with errors.AsType</title>
<updated>2025-10-13T17:12:48Z</updated>
<author>
<name>Julien Cretel</name>
<email>jub0bsinthecloud@gmail.com</email>
</author>
<published>2025-10-01T20:08:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=6bcd97d9f4386528aa85eb3cc27da0ed902de870'/>
<id>urn:sha1:6bcd97d9f4386528aa85eb3cc27da0ed902de870</id>
<content type='text'>
This change replaces most occurrences (in code as well as in comments) of
errors.As with errors.AsType. It leaves the errors package and vendored
code untouched.

Change-Id: I3bde73f318a0b408bdb8f5a251494af15a13118a
GitHub-Last-Rev: 8aaaa36a5a12d2a6a90c6d51680464e1a3115139
GitHub-Pull-Request: golang/go#75698
Reviewed-on: https://go-review.googlesource.com/c/go/+/708495
Auto-Submit: Michael Pratt &lt;mpratt@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Alan Donovan &lt;adonovan@google.com&gt;
Reviewed-by: Michael Pratt &lt;mpratt@google.com&gt;
</content>
</entry>
<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>
</feed>
