test/regress: fix bufferevent_pair_release_lock with EVENT_DEBUG_MODE

Before this patch you will see next error:
$ EVENT_DEBUG_MODE= regress --no-fork bufferevent/bufferevent_pair_release_lock
bufferevent/bufferevent_pair_release_lock: [err] evthread initialization must be called BEFORE anything else!
This commit is contained in:
Azat Khuzhin 2015-09-02 11:55:14 +03:00
parent 4637aa8841
commit 6ea66554df

View File

@ -278,6 +278,9 @@ static void lock_unlock_free_thread_cbs(void)
{
event_base_free(NULL);
if (libevent_tests_running_in_debug_mode)
libevent_global_shutdown();
/** drop immutable flag */
evthread_set_lock_callbacks(NULL);
/** avoid calling of event_global_setup_locks_() for new cbs */