From 1c3415e26fe5c5f7e7a8e2495b7c4aecf11ab2a5 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 10 Sep 2020 19:07:34 -0500 Subject: [PATCH] wolfssl/test.h:err_sys_with_errno(): printing the errno msg seems to blow up all the parse tests, so only do it when -DDEBUG_TEST_ERR_SYS_WITH_ERRNO. --- wolfssl/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index af50d3a34..ac1205fa3 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -509,7 +509,7 @@ WC_NORETURN void #endif err_sys_with_errno(const char* msg) { -#if defined(HAVE_STRING_H) && defined(HAVE_ERRNO_H) +#ifdef DEBUG_TEST_ERR_SYS_WITH_ERRNO printf("wolfSSL error: %s: %s\n", msg, strerror(errno)); #else printf("wolfSSL error: %s\n", msg);