From 002d49402f77ac0d3cbe2bb9f9c29a312ee93f97 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 5 Aug 2022 15:52:55 +0200 Subject: [PATCH] enhance: Add Config::set_temporary_dir For usage by unit tests. --- src/Config.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Config.hpp b/src/Config.hpp index 0e18247f5..66920b1cd 100644 --- a/src/Config.hpp +++ b/src/Config.hpp @@ -116,6 +116,7 @@ public: void set_max_files(uint64_t value); void set_max_size(uint64_t value); void set_run_second_cpp(bool value); + void set_temporary_dir(const std::string& value); // Where to write configuration changes. const std::string& primary_config_path() const; @@ -569,3 +570,9 @@ Config::set_run_second_cpp(bool value) { m_run_second_cpp = value; } + +inline void +Config::set_temporary_dir(const std::string& value) +{ + m_temporary_dir = value; +} -- 2.47.3