]> Cypherpunks repositories - gostls13.git/commit
time: avoid broken fix for buggy TestOverflowRuntimeTimer
authorRob Pike <r@golang.org>
Thu, 12 Jun 2014 18:44:55 +0000 (11:44 -0700)
committerRob Pike <r@golang.org>
Thu, 12 Jun 2014 18:44:55 +0000 (11:44 -0700)
commit83c814066237bf6e8490d83643ba76513082a158
treed5a394b6685b8126f68280991d91234c62ad7261
parente46be90feca7dfe0532027b08106675e26b93b35
time: avoid broken fix for buggy TestOverflowRuntimeTimer
The test requires that timerproc runs, but busy loops and starves
the scheduler so that, with high probability, timerproc doesn't run.
Avoid the issue by expecting the test to succeed; if not, a major
outside timeout will kill it and let us know.

As you can see from the diffs, there have been several attempts to
fix this with chicanery, but none has worked. Don't bother trying
any more.

Fixes #8136.

LGTM=rsc
R=rsc, josharian
CC=golang-codereviews
https://golang.org/cl/105140043
src/pkg/time/internal_test.go
src/pkg/time/sleep_test.go