aboutsummaryrefslogtreecommitdiff
path: root/src/test/log_test_helpers.c
AgeCommit message (Collapse)Author
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 'bug24104_029_squashed'Nick Mathewson
2018-09-01Add test log helpers for msgs not containing strjuga0
2018-07-10Rename torlog.[ch] to log.[ch]Nick Mathewson
Fun fact: these files used to be called log.[ch] until we ran into conflicts with systems having a log.h file. But now that we always include "lib/log/log.h", we should be fine.
2018-06-22Automated fixup of include paths after torlog.h movement.Nick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2017-03-15Run the copyright update script.Nick Mathewson
2016-09-08Placate "make check-spaces"Nick Mathewson
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-08Revise log-testing macros to dump the actual log contents on failureNick Mathewson
2016-09-05Appease make check-spacesAndrea Shepard
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-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-07-06When saving mocked log messages, always create the list.Nick Mathewson
Otherwise, our code needs to check "list && smarlist_len(list)..."
2016-02-27Update the copyright year.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-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