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.

This commit is contained in:
Daniel Pouzzner
2020-09-10 19:07:34 -05:00
parent 1ebd851b2e
commit 1c3415e26f

View File

@@ -509,7 +509,7 @@ WC_NORETURN void
#endif #endif
err_sys_with_errno(const char* msg) 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)); printf("wolfSSL error: %s: %s\n", msg, strerror(errno));
#else #else
printf("wolfSSL error: %s\n", msg); printf("wolfSSL error: %s\n", msg);