1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

tevent: Add tevent_re_initialise to threaded test

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit ca715762418284a1a2acc81d40e9e429e407ce14)
This commit is contained in:
Volker Lendecke 2017-06-05 07:29:11 +02:00 committed by Karolin Seeger
parent 83c8bb78e5
commit 1375ed8b1c

View File

@ -1207,6 +1207,14 @@ static bool test_multi_tevent_threaded_2(struct torture_context *test,
ev = tevent_context_init(test);
torture_assert(test, ev != NULL, "tevent_context_init failed");
/*
* tevent_re_initialise used to have a bug where it did not
* re-initialise the thread support after taking it
* down. Excercise that code path.
*/
ret = tevent_re_initialise(ev);
torture_assert(test, ret == 0, "tevent_re_initialise failed");
tctx = tevent_threaded_context_create(ev, ev);
torture_assert(test, tctx != NULL,
"tevent_threaded_context_create failed");