summaryrefslogtreecommitdiff
path: root/test/test-util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-util.hpp')
-rw-r--r--test/test-util.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test-util.hpp b/test/test-util.hpp
index 3338c5e..b0ae0dd 100644
--- a/test/test-util.hpp
+++ b/test/test-util.hpp
@@ -4,6 +4,7 @@
#include <filesystem>
#include <pq-mock.h>
#include <sys/utsname.h>
+#include <util.hpp>
namespace WebStat {
#define XSTR(s) STR(s)
@@ -12,10 +13,6 @@ namespace WebStat {
#undef XSTR
#undef STR
- template<auto Deleter>
- using DeleteWith = decltype([](auto obj) {
- return Deleter(obj);
- });
using FilePtr = std::unique_ptr<std::FILE, DeleteWith<&fclose>>;
struct MockDB : public DB::PluginMock<PQ::Mock> {