aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/test_certstor.cpp9
-rw-r--r--src/tests/unit_tls.cpp3
2 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/test_certstor.cpp b/src/tests/test_certstor.cpp
index 693630e54..cacaf8d0e 100644
--- a/src/tests/test_certstor.cpp
+++ b/src/tests/test_certstor.cpp
@@ -12,9 +12,6 @@
#include <botan/internal/filesystem.h>
#include <botan/pkcs8.h>
#include <sstream>
- extern "C" {
- #include <unistd.h> // unlink()
- }
#endif
@@ -209,11 +206,11 @@ class Certstor_Tests : public Test
try
{
- unlink((fn.first + ".db").c_str());
-
auto& rng = Test::rng();
std::string passwd(reinterpret_cast<const char*>(rng.random_vec(8).data()),8);
- Botan::Certificate_Store_In_SQLite store(fn.first + ".db", passwd, rng);
+
+ // Just create a database in memory for testing (https://sqlite.org/inmemorydb.html)
+ Botan::Certificate_Store_In_SQLite store(":memory:", passwd, rng);
std::vector<std::pair<Botan::X509_Certificate,std::shared_ptr<Botan::Private_Key>>> retrieve;
for(auto&& cert_key_pair : test_data)
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp
index 6b3eb753a..35effc5a2 100644
--- a/src/tests/unit_tls.cpp
+++ b/src/tests/unit_tls.cpp
@@ -5,6 +5,9 @@
* Botan is released under the Simplified BSD License (see license.txt)
*/
+// Deprecated TLS APIs are tested below
+#define BOTAN_NO_DEPRECATED_WARNINGS
+
#include "tests.h"
#include <vector>
#include <memory>