Skip to content
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

Bug29500 040 monoinit #906

Merged

Conversation

Labels
None yet
Projects
None yet
4 participants
@teor2345
Copy link
Contributor

@teor2345 teor2345 commented Apr 5, 2019

No description provided.

mikeperry-tor and others added 6 commits Apr 5, 2019
Cancel the padding timer by changing order of sent vs recv (sent cancels).
Hopefully this will stop monotime_absolute_usec() from returning 0 on some
platforms in the tests.
Our monotime mocking forces us to call monotime_init() *before* we set the
mocked time value. monotime_init() thus stores the first ratchet value at
whatever the platform is at, and then we set fake mocked time to some later
value.

If monotime_init() gets a value from the host that is greater than what we
choose to mock time at for our unittests, all subsequent monotime_abosolute()
calls return zero, which breaks all unittests that depend on time moving
forward by updating mocked monotime values.

So, we need to adjust our mocked time to take the weird monotime_init() time
into account, when we set fake time.
This test was disabled in 0.4.0 and later, but the fix in #29298 was only
merged to 0.4.1. So this test will never be re-enabled in 0.4.0.

Part of 29500.
@coveralls
Copy link

@coveralls coveralls commented Apr 5, 2019

Pull Request Test Coverage Report for Build 4577

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 61.729%

Totals Coverage Status
Change from base Build 4571: 0.001%
Covered Lines: 45344
Relevant Lines: 73457

💛 - Coveralls

@torproject-pusher torproject-pusher merged commit da67821 into torproject:maint-0.4.0 Apr 5, 2019
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment