From 5ea931b913ea7775bf2ef588c349e62365dafb6d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 11 Feb 2025 12:46:26 +0100 Subject: Fix crash when tests are run in some orders. --- test/analytics_test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/analytics_test.cc b/test/analytics_test.cc index bc7db7f3d..1404738e1 100644 --- a/test/analytics_test.cc +++ b/test/analytics_test.cc @@ -20,6 +20,7 @@ #include "lib/analytics.h" +#include "test.h" #include #include @@ -29,7 +30,9 @@ using std::string; BOOST_AUTO_TEST_CASE(many_successful_encodes_test) { - dcp::filesystem::remove_all(*State::override_path); + boost::filesystem::path const path = "build/test/many_successful_encodes_test"; + dcp::filesystem::remove_all(path); + ConfigRestorer cr(path); Analytics analytics; -- cgit v1.2.3