diff options
author | vnugent <public@vaughnnugent.com> | 2024-10-23 21:59:03 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-10-23 21:59:03 -0400 |
commit | f938617d45d1ef62a3315591174a7dc6862aa8b7 (patch) | |
tree | 5803833b41997943c946f72380a3aa400f03f364 /tests/test.c | |
parent | dc47d096400e7a4d95dd9516c72876c8ad016dcb (diff) |
fix: Add Valgrind to testing suite, openssl fixes
Diffstat (limited to 'tests/test.c')
-rw-r--r-- | tests/test.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test.c b/tests/test.c index 20a0e5d..e8ce756 100644 --- a/tests/test.c +++ b/tests/test.c @@ -507,8 +507,16 @@ static int TestPublicApiArgumentValidation() macArgs.payloadSize = 0; TEST(NCVerifyMac(ctx, &secKey, &pubKey, &macArgs), ARG_RANGE_ERROR_POS_3) } - - PRINTL("\nPASSED: Public API argument validation tests completed") + + ENSURE(NCDestroyContext(ctx) == NC_SUCCESS); + +#ifdef NOSCRYPTUTIL_H + NCUtilContextFree(ctx); +#else + free(ctx); +#endif + + PRINTL("\nPASSED: Public API argument validation tests completed"); return 0; } |