mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Don't do multithreaded logging tests if single threaded
This commit is contained in:
10
tests/api.c
10
tests/api.c
@@ -44783,8 +44783,9 @@ static int test_wolfSSL_PKCS8_d2i(void)
|
|||||||
return EXPECT_RESULT();
|
return EXPECT_RESULT();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(ERROR_QUEUE_PER_THREAD) && !defined(NO_ERROR_QUEUE) && \
|
#if !defined(SINGLE_THREADED) && defined(ERROR_QUEUE_PER_THREAD) && \
|
||||||
defined(OPENSSL_EXTRA) && defined(DEBUG_WOLFSSL)
|
!defined(NO_ERROR_QUEUE) && defined(OPENSSL_EXTRA) && \
|
||||||
|
defined(DEBUG_WOLFSSL)
|
||||||
#define LOGGING_THREADS 5
|
#define LOGGING_THREADS 5
|
||||||
#define ERROR_COUNT 10
|
#define ERROR_COUNT 10
|
||||||
/* copied from logging.c since this is not exposed otherwise */
|
/* copied from logging.c since this is not exposed otherwise */
|
||||||
@@ -44839,8 +44840,9 @@ static THREAD_RETURN WOLFSSL_THREAD test_logging(void* args)
|
|||||||
static int test_error_queue_per_thread(void)
|
static int test_error_queue_per_thread(void)
|
||||||
{
|
{
|
||||||
int res = TEST_SKIPPED;
|
int res = TEST_SKIPPED;
|
||||||
#if defined(ERROR_QUEUE_PER_THREAD) && !defined(NO_ERROR_QUEUE) && \
|
#if !defined(SINGLE_THREADED) && defined(ERROR_QUEUE_PER_THREAD) && \
|
||||||
defined(OPENSSL_EXTRA) && defined(DEBUG_WOLFSSL)
|
!defined(NO_ERROR_QUEUE) && defined(OPENSSL_EXTRA) && \
|
||||||
|
defined(DEBUG_WOLFSSL)
|
||||||
THREAD_TYPE loggingThreads[LOGGING_THREADS];
|
THREAD_TYPE loggingThreads[LOGGING_THREADS];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user