summaryrefslogtreecommitdiff
path: root/test-timeout.c
AgeCommit message (Collapse)Author
2023-09-12调整文件布局, rs-timeout 为主目录, timeout.c 等为二级目录zy
2016-05-12Fix a signed overflow warning in test_timeouts.cNick Mathewson
Technically, when int is 32-bit, 1<<31 is an overflow.
2016-02-26Merge branch 'test_foreach' of git://github.com/nmathewson/timeout into ↵William Ahern
nmathewson-test_foreach
2016-02-26Merge branch 'fixing_intervals' of git://github.com/nmathewson/timeout into ↵William Ahern
nmathewson-fixing_intervals
2016-02-26fix use-after-free in test-timeout.cWilliam Ahern
2016-02-26Branch-complete tests for timeouts_next()Nick Mathewson
2016-02-26Make the tests cover timeout_readd() betterNick Mathewson
Also, make them check the required invariants for to->expires after timeout_readd(). Also, actually use the different timeout values in the main() function (whoops).
2016-02-20Write a small set of unit tests aiming for high coverageNick Mathewson
These currently cover most reachable lines and branches, except the case where malloc fails in timeouts_open(), the if() branch in timeouts_readd() (see issue #7) , and some failure cases in timeouts_check().