From b973d6e8b162d732739171059227617b4b16633f Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 17 May 2018 10:24:02 -0700 Subject: [PATCH] Fix to handle `NO_ERROR_STRINGS` case in unit test. The IANA names are disabled when `NO_ERROR_STRINGS` is defined. --- tests/api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/api.c b/tests/api.c index 4f3a32d5e..ec4a54869 100644 --- a/tests/api.c +++ b/tests/api.c @@ -1411,7 +1411,12 @@ static void test_client_nofail(void* args, void *cb) cipher = wolfSSL_get_current_cipher(ssl); cipherName1 = wolfSSL_CIPHER_get_name(cipher); cipherName2 = wolfSSL_get_cipher(ssl); +#ifdef NO_ERROR_STRINGS + AssertNull(cipherName1); + AssertNull(cipherName2); +#else AssertStrEQ(cipherName1, cipherName2); +#endif if(cb != NULL)((cbType)cb)(ctx, ssl);