summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc
index 0a59d0300..8d92b31e4 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -1030,8 +1030,16 @@ check_int_close (std::pair<int, int> a, std::pair<int, int> b, int d)
}
+ConfigRestorer::ConfigRestorer(boost::filesystem::path override_path)
+{
+ Config::override_path = override_path;
+ Config::drop();
+}
+
+
ConfigRestorer::~ConfigRestorer()
{
+ Config::override_path = boost::none;
setup_test_config();
}
@@ -1073,3 +1081,4 @@ Editor::replace(string a, string b)
boost::algorithm::replace_all(_content, a, b);
BOOST_REQUIRE(_content != old_content);
}
+