1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Some globals (un-)init fixes

This commit is contained in:
sfan5 2024-04-11 13:54:09 +02:00
parent 2af5191070
commit d8190e1c5f
16 changed files with 58 additions and 62 deletions

View file

@ -115,7 +115,7 @@ static TestAuthDatabase g_test_instance;
void TestAuthDatabase::runTests(IGameDef *gamedef)
{
// fixed directory, for persistence
thread_local const std::string test_dir = getTestTempDirectory();
const std::string test_dir = getTestTempDirectory();
// Each set of tests is run twice for each database type:
// one where we reuse the same AuthDatabase object (to test local caching),

View file

@ -36,7 +36,7 @@ public:
void testFlagDesc();
static const char *config_text_before;
static const std::string config_text_after;
static const char *config_text_after;
};
static TestSettings g_test_instance;
@ -76,7 +76,7 @@ const char *TestSettings::config_text_before =
"zoop = true\n"
"[dummy_eof_end_tag]\n";
const std::string TestSettings::config_text_after =
const char *TestSettings::config_text_after =
u8"leet = 1337\n"
"leetleet = 13371337\n"
"leetleet_neg = -13371337\n"