From 4c13834500fa63093dd9d886ee57652ee9eb0521 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Wed, 19 Jun 2024 17:44:05 -0400 Subject: [PATCH] Don't do multithreaded logging tests if single threaded --- tests/api.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/api.c b/tests/api.c index 6b8b87ba5d..cfa4f9befb 100644 --- a/tests/api.c +++ b/tests/api.c @@ -44783,8 +44783,9 @@ static int test_wolfSSL_PKCS8_d2i(void) return EXPECT_RESULT(); } -#if defined(ERROR_QUEUE_PER_THREAD) && !defined(NO_ERROR_QUEUE) && \ - defined(OPENSSL_EXTRA) && defined(DEBUG_WOLFSSL) +#if !defined(SINGLE_THREADED) && defined(ERROR_QUEUE_PER_THREAD) && \ + !defined(NO_ERROR_QUEUE) && defined(OPENSSL_EXTRA) && \ + defined(DEBUG_WOLFSSL) #define LOGGING_THREADS 5 #define ERROR_COUNT 10 /* 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) { int res = TEST_SKIPPED; -#if defined(ERROR_QUEUE_PER_THREAD) && !defined(NO_ERROR_QUEUE) && \ - defined(OPENSSL_EXTRA) && defined(DEBUG_WOLFSSL) +#if !defined(SINGLE_THREADED) && defined(ERROR_QUEUE_PER_THREAD) && \ + !defined(NO_ERROR_QUEUE) && defined(OPENSSL_EXTRA) && \ + defined(DEBUG_WOLFSSL) THREAD_TYPE loggingThreads[LOGGING_THREADS]; int i;