aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_relay.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2019-04-05 00:21:07 +0000
committerteor <teor@torproject.org>2019-04-05 12:15:55 +1000
commitb733044f7a41d65b6f3937056e9499613218ab0b (patch)
tree6152f2b34ca33f7aea0c8fcc607a2d1ff086f3b2 /src/test/test_relay.c
parent28db7646ba64673188be95d3204abb94ce890b86 (diff)
downloadtor-b733044f7a41d65b6f3937056e9499613218ab0b.tar.gz
tor-b733044f7a41d65b6f3937056e9499613218ab0b.zip
Bug #29500: Fix monotime mocking in circpad unittests.
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.
Diffstat (limited to 'src/test/test_relay.c')
0 files changed, 0 insertions, 0 deletions