diff --git a/wolfssl/test.h b/wolfssl/test.h index 095fea9b6..af50d3a34 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -2125,7 +2125,7 @@ static WC_INLINE int StackSizeCheck(func_args* args, thread_func tf) ret = posix_memalign((void**)&myStack, sysconf(_SC_PAGESIZE), stackSize); if (ret != 0 || myStack == NULL) - err_sys("posix_memalign failed\n"); + err_sys_with_errno("posix_memalign failed\n"); XMEMSET(myStack, STACK_CHECK_VAL, stackSize);