os: os.StartProcess test grandchild inconsistent behavior #37745
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran the following test.
Firstly with
go test -v -count 1
, then withgo test -v -count 1 ./
.The test requires an auxiliar bash script "tmp.sh" (with execution permissions):
What did you expect to see?
I expected a similar execution time, (waiting or not for the grandchild to exit). In fact, in both cases the test gets done is ~2 seconds, but in the "./" case,
go test
only returns when the grand child (the "sleep" command) ends.What did you see instead?
Additional info
I found that if I don't pass the stdtin, stdout and stderr file descriptors the issue doesn't appear.
The text was updated successfully, but these errors were encountered: