From 66f666c8db85f072d1882467db317ed5af31bd19 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 1 Nov 2018 10:59:49 -0400 Subject: [PATCH] fixed annoying bug for test section manager where the test would create a dir /feisty_meow if run as root, for storing the ini file. do need to reevaluate the all users dir option; it makes no sense on linux, although at least we drive it by a simple environment variable. is there even a unix equivalent to that concept of storing for all users? not really, except sort of /etc dir. --- nucleus/library/tests_configuration/test_section_manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nucleus/library/tests_configuration/test_section_manager.cpp b/nucleus/library/tests_configuration/test_section_manager.cpp index c8358237..72acd84e 100644 --- a/nucleus/library/tests_configuration/test_section_manager.cpp +++ b/nucleus/library/tests_configuration/test_section_manager.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #include #include @@ -55,6 +56,10 @@ public: int test_section_manager::execute() { FUNCDEF("execute"); + + // prepare the storage area for ini config. + environment::set("ALLUSERSPROFILE", environment::get("TEMPORARIES_PILE")); + { astring TEST = "First Test"; ini_configurator ini("t_section_manager_1.ini", ini_configurator::AUTO_STORE); -- 2.34.1