Skip to content

Commit

Permalink
Merge pull request #7665 from anhu/lighty-debug
Browse files Browse the repository at this point in the history
Don't do multithreaded logging tests if single threaded
  • Loading branch information
SparkiDev authored Jul 15, 2024
2 parents 56b8ac4 + 4c13834 commit 0d8763b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -53007,8 +53007,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 */
Expand Down Expand Up @@ -53063,8 +53064,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;

Expand Down

0 comments on commit 0d8763b

Please sign in to comment.