Skip to content

Commit 159981f

Browse files
committed
include negative test comment and BAD_FUNC_ARG
1 parent fe98827 commit 159981f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27520,10 +27520,11 @@ static wc_test_ret_t hpke_test_single(Hpke* hpke)
2752027520
if (ret != 0)
2752127521
ret = WC_TEST_RET_ENC_EC(ret);
2752227522
}
27523-
27523+
27524+
/* NULL argument results in failure */
2752427525
if (ret == 0) {
2752527526
ret = wc_HpkeGenerateKeyPair(NULL, &receiverKey, rng);
27526-
if (ret != -173)
27527+
if (ret != BAD_FUNC_ARG)
2752727528
ret = WC_TEST_RET_ENC_EC(ret);
2752827529
ret = 0;
2752927530
}

0 commit comments

Comments
 (0)