Skip to content

Commit

Permalink
test: prevent duplicate event_enable_debug_mode() for TT_ENABLE_DEBUG…
Browse files Browse the repository at this point in the history
…_MODE
  • Loading branch information
cybojanek authored and azat committed Aug 27, 2019
1 parent 6186d31 commit 70daa93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/regress_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 70daa93

Please sign in to comment.