summaryrefslogtreecommitdiff
path: root/test/test.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-25 20:21:27 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-29 10:35:55 +0200
commitca969a5faa17913d1da04e57f56c29d20340ce2c (patch)
treec356eec8c72955336bedc1f52479494ead36fd65 /test/test.h
parent1e6484e0fe9e3fa090ef58e17433333a5378043c (diff)
Use ConfigRestorer to reset override_path after use.
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test.h b/test/test.h
index f63f942b6..73c77c98d 100644
--- a/test/test.h
+++ b/test/test.h
@@ -96,7 +96,14 @@ private:
class ConfigRestorer
{
public:
+ ConfigRestorer(boost::filesystem::path override_path);
+
+ ConfigRestorer() {}
+
~ConfigRestorer();
+
+private:
+ boost::optional<boost::filesystem::path> _old_path;
};