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 master monoinit #907

Merged
8 commits merged into from
Apr 5, 2019
Merged

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Apr 5, 2019

No description provided.

Mike Perry and others added 8 commits April 5, 2019 12:13
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.
…init

Apply data structure changes between 0.4.0 and 0.4.1.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4578

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.001%) to 62.261%

Files with Coverage Reduction New Missed Lines %
src/core/or/relay.c 1 49.33%
src/core/or/circuitpadding.c 2 92.47%
Totals Coverage Status
Change from base Build 4574: -0.001%
Covered Lines: 46181
Relevant Lines: 74173

💛 - Coveralls

@ghost ghost merged commit e992c5e into torproject:master Apr 5, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants