mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-19 19:25:18 +02:00
Some globals (un-)init fixes
This commit is contained in:
@@ -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),
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user