mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-03 17:26:24 -04:00
test: prevent duplicate event_enable_debug_mode() for TT_ENABLE_DEBUG_MODE
(cherry picked from commit 70daa93a514075eb0102eec4c6e5002b114264a9)
This commit is contained in:
parent
0126814f2f
commit
23af76de0a
@ -197,8 +197,9 @@ basic_test_setup(const struct testcase_t *testcase)
|
||||
if (testcase->flags & TT_ENABLE_IOCP_FLAG)
|
||||
return (void*)TT_SKIP;
|
||||
#endif
|
||||
|
||||
if (testcase->flags & TT_ENABLE_DEBUG_MODE) {
|
||||
|
||||
if (testcase->flags & TT_ENABLE_DEBUG_MODE &&
|
||||
!libevent_tests_running_in_debug_mode) {
|
||||
event_enable_debug_mode();
|
||||
libevent_tests_running_in_debug_mode = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user