aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_voting_flags.c
AgeCommit message (Collapse)Author
2019-05-02Move voteflags.[ch] to become dirauth only.Nick Mathewson
For various reasons, this was a nontrivial movement. There are several places in the code where we do something like "update the flags on this routerstatus or node if we're an authority", and at least one where we pretended to be an authority when we weren't.
2019-01-16Bump copyright date to 2019Nick Mathewson
2019-01-02Explicitly ignore check_result() result in test_voting_flags_minimalNick Mathewson
Otherwise, coverity complains at is.
2018-12-23Fix a buffer overflow in setup_cfg() in src/test/test_voting_flags.cKris Katterjohn
signed_descriptor_digest has a length of DIGEST_LEN but the memset used to fill it used DIGEST256_LEN. Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
2018-12-03Add a framework for testing set_routerstatus_from_routerinfo().Nick Mathewson
Additionally, use it to test that is_staledesc is set correctly. Eventually we'll want to test all the other flags, but I'm aiming for only adding coverage on the changed code here.