<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/os/executable_test.go, branch json-isValidNumber-before</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=json-isValidNumber-before</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=json-isValidNumber-before'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2023-01-19T20:45:37Z</updated>
<entry>
<title>os: clean up tests</title>
<updated>2023-01-19T20:45:37Z</updated>
<author>
<name>Bryan C. Mills</name>
<email>bcmills@google.com</email>
</author>
<published>2022-12-13T21:04:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=e49cb0208b17936f370753c820cb8dfef8d2bd5e'/>
<id>urn:sha1:e49cb0208b17936f370753c820cb8dfef8d2bd5e</id>
<content type='text'>
- Use testenv.Command instead of exec.Command to try to get more
  useful timeout behavior.

- Parallelize tests that appear not to require global state.
  (And add explanatory comments for a few that are not
  parallelizable for subtle reasons.)

- Consolidate some “Helper” tests with their parent tests.

- Use t.TempDir instead of os.MkdirTemp when appropriate.

- Factor out subtests for repeated test helpers.

For #36107.
Updates #22315.

Change-Id: Ic24b6957094dcd40908a59f48e44c8993729222b
Reviewed-on: https://go-review.googlesource.com/c/go/+/458015
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Run-TryBot: Bryan Mills &lt;bcmills@google.com&gt;
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>os: use testenv.Command instead of exec.Command in tests</title>
<updated>2022-11-17T16:24:19Z</updated>
<author>
<name>cui fliter</name>
<email>imcusg@gmail.com</email>
</author>
<published>2022-11-16T14:45:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f3ae7ac9d90a26e9bba1589ae934e62bf0ac17e0'/>
<id>urn:sha1:f3ae7ac9d90a26e9bba1589ae934e62bf0ac17e0</id>
<content type='text'>
testenv.Command sets a default timeout based on the test's deadline
and sends SIGQUIT (where supported) in case of a hang.

Change-Id: I32ea9ca11c30d8af3d5490f2db1674314962cc80
Reviewed-on: https://go-review.googlesource.com/c/go/+/451195
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Joedian Reid &lt;joedian@golang.org&gt;
Auto-Submit: Bryan Mills &lt;bcmills@google.com&gt;
Run-TryBot: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>os: skip TestExecutableDeleted on plan9</title>
<updated>2021-05-04T18:47:19Z</updated>
<author>
<name>Richard Miller</name>
<email>miller.research@gmail.com</email>
</author>
<published>2021-05-04T16:43:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8c3d217d89e718a5d9b7d8f4b1336907f15ea50c'/>
<id>urn:sha1:8c3d217d89e718a5d9b7d8f4b1336907f15ea50c</id>
<content type='text'>
This test deletes the running executable file, which is not safe
on Plan 9. The test was working by accident prior to commit 02ab8d1,
which must have changed the page reference ordering just enough to
cause a new demand page-in after deletion of the file.

Fixes #45941

Change-Id: Ic13d8032c21cee603e3afc3c5c4da6093fc37bf4
Reviewed-on: https://go-review.googlesource.com/c/go/+/316829
Reviewed-by: David du Colombier &lt;0intro@gmail.com&gt;
Reviewed-by: Bryan C. Mills &lt;bcmills@google.com&gt;
Trust: David du Colombier &lt;0intro@gmail.com&gt;
Run-TryBot: David du Colombier &lt;0intro@gmail.com&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>os: skip TestExecutableDeleted on aix</title>
<updated>2021-04-23T11:33:03Z</updated>
<author>
<name>Egon Elbre</name>
<email>egonelbre@gmail.com</email>
</author>
<published>2021-04-23T05:41:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=105a6e9518a5195950a2798769af6e86b6d87417'/>
<id>urn:sha1:105a6e9518a5195950a2798769af6e86b6d87417</id>
<content type='text'>
aix does not support reading deleted executable name.

Change-Id: I955ed2c22bd0693440e2c889a4d3132d0a375c48
Reviewed-on: https://go-review.googlesource.com/c/go/+/312392
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
</content>
</entry>
<entry>
<title>os: depend on Readlink only when necessary</title>
<updated>2021-04-22T21:03:32Z</updated>
<author>
<name>Egon Elbre</name>
<email>egonelbre@gmail.com</email>
</author>
<published>2021-04-20T14:38:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=cfe5d79c5c2c9888a0e56e089dca99e405a225b9'/>
<id>urn:sha1:cfe5d79c5c2c9888a0e56e089dca99e405a225b9</id>
<content type='text'>
Currently Readlink gets linked into the binary even when Executable is
not needed.

This reduces a simple "os.Stdout.Write([]byte("hello"))" by ~10KiB.

Previously the executable path was read during init time, because
deleting the executable would make "Readlink" return "(deleted)" suffix.
There's probably a slight chance that the init time reading would return
it anyways.

Updates #6853

Change-Id: Ic76190c5b64d9320ceb489cd6a553108614653d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/311790
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
Trust: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
</content>
</entry>
<entry>
<title>all: remove the nacl port (part 1)</title>
<updated>2019-10-09T06:14:44Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2019-10-08T19:19:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=a38a917aee626a9b9d5ce2b93964f586bf759ea0'/>
<id>urn:sha1:a38a917aee626a9b9d5ce2b93964f586bf759ea0</id>
<content type='text'>
You were a useful port and you've served your purpose.
Thanks for all the play.

A subsequent CL will remove amd64p32 (including assembly files and
toolchain bits) and remaining bits. The amd64p32 removal will be
separated into its own CL in case we want to support the Linux x32 ABI
in the future and want our old amd64p32 support as a starting point.

Updates #30439

Change-Id: Ia3a0c7d49804adc87bf52a4dea7e3d3007f2b1cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/199499
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>os: fix tests for AIX</title>
<updated>2018-10-26T14:46:35Z</updated>
<author>
<name>Clément Chigot</name>
<email>clement.chigot@atos.net</email>
</author>
<published>2018-10-25T08:02:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=db9e15e68f24120922564365670c2bef6f6869e7'/>
<id>urn:sha1:db9e15e68f24120922564365670c2bef6f6869e7</id>
<content type='text'>
This commits fixes tests for AIX inside os package.

"hostname" command on AIX returns "name.domain" and not only "name".
So, "hostname -s" must be called.

Change-Id: I75e193bcb6ad607ce54ad99aabbed9839012f707
Reviewed-on: https://go-review.googlesource.com/c/144537
Reviewed-by: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Run-TryBot: Tobias Klauser &lt;tobias.klauser@gmail.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>os: fix typo in TestExecutable comment</title>
<updated>2017-12-09T15:49:34Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2017-12-09T11:31:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b3a108879f3312eb289b66186b16f87bb300795f'/>
<id>urn:sha1:b3a108879f3312eb289b66186b16f87bb300795f</id>
<content type='text'>
Change-Id: I2ad5d73deaee57ccbb2c75378dcc2884e43be3bb
Reviewed-on: https://go-review.googlesource.com/82899
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
</content>
</entry>
<entry>
<title>os: run more of TestExecutable on OpenBSD</title>
<updated>2017-06-22T04:42:40Z</updated>
<author>
<name>Michael Hendricks</name>
<email>michael@ndrix.org</email>
</author>
<published>2017-06-22T02:28:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b3301865a025fda72b8d327fad4461bb7bf68600'/>
<id>urn:sha1:b3301865a025fda72b8d327fad4461bb7bf68600</id>
<content type='text'>
On OpenBSD, Executable relies on Args[0].  Removing the forgery on
that OS allows the rest of the test to run.

See #19453

Change-Id: Idf99f86894de5c702893791bc3684f8665f4019d
Reviewed-on: https://go-review.googlesource.com/46398
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Run-TryBot: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>os: on OpenBSD implement Executable using Args[0]</title>
<updated>2017-06-17T03:32:59Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2017-06-17T01:13:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=c60d6c0b4367c047470ddd652f8c53e286481f96'/>
<id>urn:sha1:c60d6c0b4367c047470ddd652f8c53e286481f96</id>
<content type='text'>
OpenBSD no longer has procfs.

Based on a patch by Matthieu Sarter.

Fixes #19453.

Change-Id: Ia09d16f8a1cbef2f8cc1c5f49e9c61ec7d026a40
Reviewed-on: https://go-review.googlesource.com/46004
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
</content>
</entry>
</feed>
