diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-04-26 12:12:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-04-26 12:12:08 -0400 |
commit | b1b054f0646386ebb3c87585d5991dbc370eabfd (patch) | |
tree | 6bb0fa17361fe15a7390b8fda6025df5577319ae /test/regress.h | |
parent | b3aca5d96c40d9660af24b960cd49f24a63c5a9e (diff) | |
download | libevent-b1b054f0646386ebb3c87585d5991dbc370eabfd.tar.gz |
Make all tests pass under EVENT_DEBUG_MODE=1
The fix was easy: the tests that were failing were those tests that
also enabled debug mode themselves. So, let them know when
EVENT_DEBUG_MODE is on, so they won't do that.
Diffstat (limited to 'test/regress.h')
-rw-r--r-- | test/regress.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/regress.h b/test/regress.h index 449a59b0..4e4844d2 100644 --- a/test/regress.h +++ b/test/regress.h @@ -78,6 +78,8 @@ extern const struct testcase_setup_t basic_setup; extern const struct testcase_setup_t legacy_setup; void run_legacy_test_fn(void *ptr); +extern int libevent_tests_running_in_debug_mode; + /* A couple of flags that basic/legacy_setup can support. */ #define TT_NEED_SOCKETPAIR TT_FIRST_USER_FLAG #define TT_NEED_BASE (TT_FIRST_USER_FLAG<<1) |