aboutsummaryrefslogtreecommitdiff
path: root/src/common/util_bug.h
AgeCommit message (Collapse)Author
2016-09-14Remove an extraneous parenthesis in IF_BUG_OHNCE__Nick Mathewson
Fixes bug 20141; bugfix on 0.2.9.1-alpha. Patch from Gisle Vanem.
2016-09-08Treat all nonfatal assertion failures as unit test failures.Nick Mathewson
Part of 19999.
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-06-09Reduce make check-spaces noiseAndrea Shepard
2016-04-15Add branch prediction to util_bug.h, and fix a bug.Nick Mathewson
2016-04-14Add an IF_BUG_ONCE macro, since that's a pretty common pattern too.Nick Mathewson
2016-04-14Add a BUG macro for usage in if checks.Nick Mathewson
2016-04-14Add new tor_assert_nonfatal*() macros.Nick Mathewson
Unlike tor_assert(), these macros don't abort the process. They're good for checking conditions we want to warn about, but which don't warrant a full crash. This commit also changes the default implementation for tor_fragile_assert() to tor_assert_nonfatal_unreached_once(). Closes ticket 18613.
2016-04-04Move tor_assert implementation into its own header/module.Nick Mathewson