From: Chris Koeritz Date: Thu, 1 Nov 2018 14:59:49 +0000 (-0400) Subject: fixed annoying bug for test section manager X-Git-Tag: 2.140.115^2~68 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=66f666c8db85f072d1882467db317ed5af31bd19 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. --- 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);