-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os: TestKillFindProcess failures with "Test process succeeded, but expected to fail" #44131
Comments
2022-02-08T19:03:52-9e0de1f/dragonfly-amd64 |
Change https://go.dev/cl/386174 mentions this issue: |
2022-02-15T21:18:59-08ed488/dragonfly-amd64 Looks like an easy fix, too. |
Change https://go.dev/cl/386196 mentions this issue: |
The test spawned a subprocess that arbitrarily slept for one second. However, on some platforms, longer than one second may elapse between starting the subprocess and sending the termination signal. Instead, the subprocess now closes stdout and reads stdin until EOF, eliminating the need for an arbitrary duration. (If the parent test times out, the stdin pipe will break, so the subprocess still won't leak forever.) This also makes the test much faster in the typical case: since it uses synchronization instead of sleeping, it can run as quickly as the host OS can start and kill the process. Updates #44131. Change-Id: I9753571438380dc14fc3531efdaea84578a47fae Reviewed-on: https://go-review.googlesource.com/c/go/+/386174 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> (cherry picked from commit eaf0405) Reviewed-on: https://go-review.googlesource.com/c/go/+/386196 Trust: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-08-17T20:06:49-e6d0bd2/darwin-amd64-nocgo
2019-11-02T21:51:23-7955ece/aix-ppc64
2019-11-01T16:05:22-8d45e61/aix-ppc64
2019-09-01T10:08:53-99df76f/solaris-amd64-oraclerel
See previously #43722.
The text was updated successfully, but these errors were encountered: