File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,7 @@ class SQLite3Provider : public AuthDatabaseProvider
90
90
class TestAuthDatabase : public TestBase
91
91
{
92
92
public:
93
- TestAuthDatabase ()
94
- {
95
- TestManager::registerTestModule (this );
96
- // fixed directory, for persistence
97
- test_dir = getTestTempDirectory ();
98
- }
93
+ TestAuthDatabase () { TestManager::registerTestModule (this ); }
99
94
const char *getName () { return " TestAuthDatabase" ; }
100
95
101
96
void runTests (IGameDef *gamedef);
@@ -112,14 +107,16 @@ class TestAuthDatabase : public TestBase
112
107
void testDelete ();
113
108
114
109
private:
115
- std::string test_dir;
116
110
AuthDatabaseProvider *auth_provider;
117
111
};
118
112
119
113
static TestAuthDatabase g_test_instance;
120
114
121
115
void TestAuthDatabase::runTests (IGameDef *gamedef)
122
116
{
117
+ // fixed directory, for persistence
118
+ thread_local const std::string test_dir = getTestTempDirectory ();
119
+
123
120
// Each set of tests is run twice for each database type:
124
121
// one where we reuse the same AuthDatabase object (to test local caching),
125
122
// and one where we create a new AuthDatabase object for each call
You can’t perform that action at this time.
0 commit comments