From 159981f442a6563a23806dd4627276c97b2d2763 Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Wed, 22 May 2024 15:23:38 -0600 Subject: [PATCH] include negative test comment and BAD_FUNC_ARG --- wolfcrypt/test/test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index aa829ca8a..805798230 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -27520,10 +27520,11 @@ static wc_test_ret_t hpke_test_single(Hpke* hpke) if (ret != 0) ret = WC_TEST_RET_ENC_EC(ret); } - + + /* NULL argument results in failure */ if (ret == 0) { ret = wc_HpkeGenerateKeyPair(NULL, &receiverKey, rng); - if (ret != -173) + if (ret != BAD_FUNC_ARG) ret = WC_TEST_RET_ENC_EC(ret); ret = 0; }