summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-01 03:13:00 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-01 03:13:00 +0100
commitd5861096a975274fcce72b45fe4ed38c96c61610 (patch)
treeee97aa2a5e4ba9f25df32569ed90d8fc9338be16 /tests
parent9465fd744cc2117190bafc1a3e2da9f10ca29bf9 (diff)
(Re-)Use precompiled SQL statements
Diffstat (limited to 'tests')
-rw-r--r--tests/test-storage.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-storage.cpp b/tests/test-storage.cpp
index 67d7236..11d8a20 100644
--- a/tests/test-storage.cpp
+++ b/tests/test-storage.cpp
@@ -19,6 +19,13 @@ class StorageTest: public ::testing::Test
{
protected:
StorageTest(){
+ }
+
+ ~StorageTest() override{
+ }
+
+ void SetUp() override
+ {
File::setFile(testConfigFilename, R"CONFIG(
<config>
<datapath>.</datapath>
@@ -31,7 +38,8 @@ protected:
m_config = Config{testConfigFilename};
}
- ~StorageTest(){
+ void TearDown() override
+ {
std::error_code ec;
fs::remove(testDbFilename, ec);
fs::remove(testConfigFilename, ec);