diff --git a/tests/helpers.c b/tests/helpers.c index b1155ba..946e7ac 100644 --- a/tests/helpers.c +++ b/tests/helpers.c @@ -11,6 +11,7 @@ #include #include #include +#include #include "helpers.h" char *get_unique_name_and_path(const char *type, @@ -38,6 +39,7 @@ void new_thread(pthread_t *tid, int policy, int prio, pthread_attr_init(&attr); param.sched_priority = prio; + pthread_attr_setstacksize(&attr, EVL_STACK_DEFAULT); pthread_attr_setschedpolicy(&attr, policy); pthread_attr_setschedparam(&attr, ¶m); pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);