summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-09-08more consistent use of expect_log_msg_containingNick Mathewson
2016-09-08Suppress a really impressive pile of warnings in conection/.. testsNick Mathewson
2016-09-08Fix a bug in connection/download_status.. testsNick Mathewson
2016-09-08Revise log-testing macros to dump the actual log contents on failureNick Mathewson
2016-09-08Remove redundant definitions of expect_{no_,}log_msg()Nick Mathewson
2016-09-08Unit test fix: windows should be able to handle DNSPort just fine.Nick Mathewson
2016-09-08Patch from rubiate: disable openbsd memory protections in test-memwipeNick Mathewson
Test-memwipe is *supposed* to invoke undefined behavior, alas. Closes 20066.
2016-09-07set the "addr" field in the dir_handle_get tests, to resolve bug warnings.Nick Mathewson
2016-09-07Remove the useless (and uninitialized) MOCK_TOR_ADDR in test_dir_handle_get.cNick Mathewson
2016-09-07Merge branch 'maint-0.2.8'Nick Mathewson
2016-09-07Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-09-07Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-09-07Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-09-07Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-09-07Capture and enforce BUG warnings in dir/param_voting_lookupNick Mathewson
2016-09-07Fix unit test failure introduced by #20002Nick Mathewson
Updating the consensus algorithm made a non-valid node never get listed, which messed up some other tests.
2016-09-07Capture and enforce bug warnings in util/time testNick Mathewson
2016-09-07Merge remote-tracking branch 'dgoulet/ticket18693_029_01'Nick Mathewson
2016-09-07Merge remote-tracking branch 'sebastian/bug20064'Nick Mathewson
2016-09-07Update geoip and geoip6 to the September 6 2016 database.Karsten Loesing
2016-09-06Capture and detect the BUG() warnings in test_util_parse_integer.Nick Mathewson
2016-09-06Add facility to suppress/capture tor_bug_occurred_() messages in unit tests.Nick Mathewson
2016-09-06Add !(...) to BUG() log messagesNick Mathewson
They use the same code as reporting assertion failures, so we should invert the sense of what we're "asserting". Fixes bug 20093.
2016-09-06Fix a unit test bug for passing arguments to tor_parse_ulong.Nick Mathewson
We wanted to make sure -50 was a bad input, but instead we were passing a 'min' that was greater than 'max'.
2016-09-06Split tor_parse_{some_int} testing into separate fn. Code movement only.Nick Mathewson
2016-09-06Merge remote-tracking branch 'teor/bug20012'Nick Mathewson
2016-09-06Merge remote-tracking branch 'teor/feature20069'Nick Mathewson
2016-09-06Merge remote-tracking branch 'public/ticket20002'Nick Mathewson
2016-09-06checkSpace.pl now forbids more identifiers.Nick Mathewson
The functions it warns about are: assert, memcmp, strcat, strcpy, sprintf, malloc, free, realloc, strdup, strndup, calloc. Also, fix a few lingering instances of these in the code. Use other conventions to indicate _intended_ use of assert and malloc/realloc/etc.
2016-09-06Merge remote-tracking branch 'sebastian/bug20065'Nick Mathewson
2016-09-06Fix an indentation issue in rend_config_servicesteor
2016-09-06Fix a comment typo in smartlist_get_most_frequent_()teor (Tim Wilson-Brown)
2016-09-06Add hs-ipv6 to the chutney IPv6 teststeor
Requires a recent version of chutney. Also remove bridges+hs, as it's somewhat redundant.
2016-09-06Give useful error if authority_signing_key doesn't existSebastian Hahn
2016-09-05Vote Exit correctly with DirAllowPrivateAddresses setSebastian Hahn
When allowing private addresses, mark Exits that only exit to private locations as such. Fixes bug 20064; bugfix on 0.2.2.9-alpha.
2016-09-05Appease make check-spacesAndrea Shepard
2016-09-05Fix BUG warning with stack trace from config/parse_port_config__listenaddressNick Mathewson
2016-09-01Fix memory leaks in the shared random tests.Nick Mathewson
Please remember to test your code with --enable-expensive-hardening. :)
2016-08-31Actually, always monotime_init() in the unit tests.Nick Mathewson
2016-08-31Initialize monotonic timer code before using it in the testsNick Mathewson
2016-08-31It is not a bug to attempt to base32_decode a non-base32 stringNick Mathewson
(Rationale: it isn't a bug to try this for a base16 or base64 string. It's just a bad input that we're detecting.)
2016-08-31Detect and suppress bug message from zlib compression bomb testNick Mathewson
2016-08-31Require specific messages for remaining link-handshake failure casesNick Mathewson
2016-08-31Always log [bug] warnings from the unit tests.Nick Mathewson
We should consider them bugs. If they are happening intentionally, we should use the log_test_helpers code to capture and suppress them. But having them off-by-default has potential to cause programming errors.
2016-08-31Do not call tor_tls_server_info_callback(NULL) from tests.Nick Mathewson
This isn't valid behavior, and it causes a crash when you run the unit tests at --debug. I've added an IF_BUG_ONCE() check for this case.
2016-08-31Work even harder not to suppress logging messages unless we mean to.Nick Mathewson
2016-08-31Document and clean log_test_helpers.c a bitNick Mathewson
In addition to documentation, this commit makes a function static, and removes a weird single-point-of-return-ism, and notes a thing I should fix.
2016-08-31Use setup_full_capture_of_logs() where appropriate.Nick Mathewson
2016-08-31setup_capture_of_logs: no longer suppress log messagesNick Mathewson
Previously setup_capture_of_logs would prevent log messages from going to the console entirely. That's a problem, since sometimes log messages are bugs! Now setup_capture_of_logs() acts sensibly. If you really do need to keep a message from going to the console entirely, there is setup_full_capture_of_logs(). But only use that if you're prepared to make sure that there are no extraneous messages generated at all.
2016-08-31Improvements to test_link_handshake: check specific error messagesNick Mathewson
Otherwise it's too easy to lose our test coverage.