From faceda6f3c7840498888f055fd0570a8eafc2fa6 Mon Sep 17 00:00:00 2001 From: Jaume Puig Date: Thu, 22 Oct 2026 16:32:38 +0200 Subject: [PATCH] Keep tests on their own config after ConfigRestorer ConfigRestorer's destructor cleared the override path shared by Config and State, so every test after the first ConfigRestorer read the user's real configuration from $HOME. A default facility code there leaked into the ISDCF name tests. Restore build/test/state instead. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017CHMGrzt5n5oKGFSjhKnrp --- test/test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.cc b/test/test.cc index 27b00b9d3..c0d04ce2d 100644 --- a/test/test.cc +++ b/test/test.cc @@ -1095,7 +1095,8 @@ ConfigRestorer::ConfigRestorer(boost::filesystem::path override_path) ConfigRestorer::~ConfigRestorer() { - Config::override_path = boost::none; + /* Back to the tests' own state directory, as set up by TestConfig, rather than $HOME */ + Config::override_path = "build/test/state"; setup_test_config(); }