Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable PKCS11 tests #544

Merged
merged 10 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@
"crt-ci-prep",
"test",
"elasticurl-tests"
]
],
"env": {
"LSAN_OPTIONS": "suppressions={source_dir}/tests/resources/suppressions-lsan.txt"
}
}
6 changes: 0 additions & 6 deletions tests/Mqtt5ClientCredentialsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,6 @@ AWS_TEST_CASE(IoTMqtt5ConnectWithSigningCustomAuthWebsockets, s_TestIoTMqtt5Conn
*/
static int s_TestIoTMqtt5ConnectWithPKCS11(Aws::Crt::Allocator *allocator, void *)
{
// This test is temporarily disabled due to asan reporting memory leak in CRYPTO_zalloc.
bool SKIP_TEST = true;
if (SKIP_TEST)
{
return AWS_OP_SKIP;
}
struct aws_string *endpoint = NULL;
struct aws_string *pkcs11_lib = NULL;
struct aws_string *pkcs11_cert = NULL;
Expand Down
6 changes: 0 additions & 6 deletions tests/MqttClientCredentialsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,6 @@ AWS_TEST_CASE(IoTMqtt311ConnectWithSigningCustomAuthWebsockets, s_TestIoTMqtt311
*/
static int s_TestIoTMqtt311ConnectWithPKCS11(Aws::Crt::Allocator *allocator, void *)
{
// This test is temporarily disabled due to asan reporting memory leak in CRYPTO_zalloc.
bool SKIP_TEST = true;
if (SKIP_TEST)
{
return AWS_OP_SKIP;
}
struct aws_string *endpoint = NULL;
struct aws_string *pkcs11_lib = NULL;
struct aws_string *pkcs11_cert = NULL;
Expand Down
1 change: 1 addition & 0 deletions tests/resources/suppressions-lsan.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
leak:CRYPTO_zalloc