aboutsummaryrefslogtreecommitdiff
path: root/src/test/log_test_helpers.h
AgeCommit message (Collapse)Author
2020-02-06log_test_helpers: remove semicolons from end of macrosNick Mathewson
We want our code to require semicolons after use of these macros, so that our code formatters and/or analysis tools don't get confused.
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-09-04Merge branch 'nss_squashed' into nss_mergeNick Mathewson
2018-09-04Merge branch 'bug24104_029_squashed'Nick Mathewson
2018-09-01Add test log helpers for msgs not containing strjuga0
2018-08-22Change log_test_helpers macros to use printf, not pastingNick Mathewson
This ensures that our test failure messages actually tell us what strings Tor was expecting. I will need this to debug some test failures.
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-05-08Add expect_no_log_msg_containing()Taylor Yu
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-03-15Run the copyright update script.Nick Mathewson
2017-02-19Make display of captured unit test log messages consistentteor
There was a missing space and an extra colon. Fixes bug 21510; bugfix on 0.2.9.3-alpha.
2016-11-16fixup! Add expect_log_msg_containing_either3() and ↵teor
expect_log_msg_containing_either4() Fix typos: * extra '(' * use assert_log_predicate (without 3 or 4 at the end) Tidy whitespace. Wrap long lines.
2016-11-16Add expect_log_msg_containing_either3() and expect_log_msg_containing_either4()Neel Chauhan
2016-09-08Simplify log_test_helpers interfaceNick Mathewson
Previously, you needed to store the previous log severity in a local variable, and it wasn't clear if you were allowed to call these functions more than once.
2016-09-08Resolve more BUG warnings in the unit testsNick Mathewson
2016-09-08Tolerate another failure mode of get_if_addres6_list in testsNick Mathewson
2016-09-08Revise log-testing macros to dump the actual log contents on failureNick Mathewson
2016-08-31Detect and suppress bug message from zlib compression bomb testNick 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-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-31Another log testing helper helper, for matching partial strings.Nick Mathewson
2016-02-27Update the copyright year.Nick Mathewson
2016-02-11Merge branch 'feature17840-v11-tests_truncated'Nick Mathewson
2016-02-01Make all unit tests independent of log message order and countteor (Tim Wilson-Brown)
2016-02-01Add a helper to search for strings in the log, and change option tests to ↵Ola Bini
use this helper instead of looking at specific indices in the log list
2016-02-01Add a helper to search for strings in the log, and change option tests to ↵Ola Bini
use this helper instead of looking at specific indices in the log list
2016-01-15Whitespace cleanupNick Mathewson
2016-01-13Add tests for options_actOla Bini
2015-10-02Clean up compat_libevent testsNick Mathewson
2015-10-02Fix style and compilation in log_test_helpersNick Mathewson
2015-09-15Add tests for compat_libeventOla Bini