diff --git a/tests/api.c b/tests/api.c index 4f6725834..047b99e02 100644 --- a/tests/api.c +++ b/tests/api.c @@ -34218,6 +34218,8 @@ static int test_wolfSSL_Tls12_Key_Logging_test(void) } /* a log starting with "CLIENT_RANDOM " should exit in the file */ ExpectIntEQ(found, 1); + /* clean up */ + ExpectIntEQ(rem_file("./MyKeyLog.txt"), 0); #endif /* OPENSSL_EXTRA && HAVE_SECRET_CALLBACK */ return EXPECT_RESULT(); }