mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
pthreadpool: explicitly use max_thread=unlimited for pthreadpool_tevent_init() tests
Currently 0 also means unlimited, but that will change soon, to force no thread and strict sync processing. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
5e723bc6f1
commit
53a9f3cac6
@ -3,6 +3,7 @@
|
||||
#include <poll.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@ -407,7 +408,7 @@ static int test_tevent_1(void)
|
||||
strerror(ret));
|
||||
return ret;
|
||||
}
|
||||
ret = pthreadpool_tevent_init(ev, 0, &pool);
|
||||
ret = pthreadpool_tevent_init(ev, UINT_MAX, &pool);
|
||||
if (ret != 0) {
|
||||
fprintf(stderr, "pthreadpool_tevent_init failed: %s\n",
|
||||
strerror(ret));
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include <setjmp.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <talloc.h>
|
||||
#include <tevent.h>
|
||||
@ -46,7 +47,7 @@ static int setup_pthreadpool_tevent(void **state)
|
||||
t->ev = tevent_context_init(t);
|
||||
assert_non_null(t->ev);
|
||||
|
||||
ret = pthreadpool_tevent_init(t->ev, 0, &t->pool);
|
||||
ret = pthreadpool_tevent_init(t->ev, UINT_MAX, &t->pool);
|
||||
assert_return_code(ret, 0);
|
||||
|
||||
*state = t;
|
||||
|
Loading…
Reference in New Issue
Block a user