tor/src
George Kadianakis 43d317f99c Fix edge case fail of shared random unittest.
The test_state_update() test would fail if you run it between 23:30 and
00:00UTC in the following line because n_protocol_runs was 2:

  tt_u64_op(state->n_protocol_runs, ==, 1);

The problem is that when you launch the test at 23:30UTC (reveal phase),
sr_state_update() gets called from sr_state_init() and it will prepare
the state for the voting round at 00:00UTC (commit phase). Since we
transition from reveal to commit phase, this would trigger a phase
transition and increment the n_protocol_runs counter.

The solution is to initialize the n_protocol_runs to 0 explicitly in the
beginning of the test, as we do for n_reveal_rounds, n_commit_rounds etc.
2016-07-02 02:49:59 +03:00
..
common Merge remote-tracking branch 'dgoulet/ticket16943_029_05-squashed' 2016-07-01 15:29:05 -04:00
config Merge branch 'maint-0.2.8' 2016-06-13 10:49:24 -04:00
ext Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS 2016-06-17 10:17:44 -04:00
or Keep make check-spaces happy 2016-07-01 21:52:32 +00:00
test Fix edge case fail of shared random unittest. 2016-07-02 02:49:59 +03:00
tools Merge branch 'maint-0.2.8' 2016-06-27 13:17:42 -04:00
trunnel Update to trunnel 1.4.4 to fix 18373 2016-02-22 14:19:29 -05:00
win32 Bump to 0.2.8.4-rc-dev 2016-06-15 12:55:17 -04:00
include.am Use trunnel for crypto_pwbox encoding/decoding. 2014-09-25 11:58:14 -04:00