Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstewart committed Sep 29, 2023
1 parent 9ea27cf commit 6d46fd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/s2n_self_talk_ktls_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ int main(int argc, char **argv)
* where we think we're testing it.
*/
bool ktls_expected = (getenv("S2N_KTLS_TESTING_EXPECTED") != NULL);
if (ktls_expected) {
/* Intentionally leak memory for ktls asan test */
struct s2n_blob leak = { 0 };
EXPECT_SUCCESS(s2n_alloc(&leak, 100));
}

if (!s2n_ktls_is_supported_on_platform() && !ktls_expected) {
END_TEST();
Expand Down

0 comments on commit 6d46fd6

Please sign in to comment.