diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-06 21:01:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-06 21:01:17 -0400 |
commit | d09723ad19b1f292d31a3f52d8ef8052c8ece309 (patch) | |
tree | e4857ecb09af74466d0002db5ff98becebd8b156 /src/common/util_bug.h | |
parent | 2b39c927c7f2c13f17d9883371a12131b6c6df40 (diff) | |
download | tor-d09723ad19b1f292d31a3f52d8ef8052c8ece309.tar.gz tor-d09723ad19b1f292d31a3f52d8ef8052c8ece309.zip |
Add facility to suppress/capture tor_bug_occurred_() messages in unit tests.
Diffstat (limited to 'src/common/util_bug.h')
-rw-r--r-- | src/common/util_bug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/util_bug.h b/src/common/util_bug.h index 8b85d472b6..049ca1a6ef 100644 --- a/src/common/util_bug.h +++ b/src/common/util_bug.h @@ -149,5 +149,11 @@ void tor_bug_occurred_(const char *fname, unsigned int line, const char *func, const char *expr, int once); +#ifdef TOR_UNIT_TESTS +void tor_capture_bugs_(int n); +void tor_end_capture_bugs_(void); +const struct smartlist_t *tor_get_captured_bug_log_(void); +#endif + #endif |