Add a mechanism for using a mock config dir for QA tests

This commit is contained in:
Jon Evans
2025-01-18 13:40:38 -05:00
parent b582f178dd
commit 975fe32fa7
19 changed files with 183318 additions and 9 deletions
+3 -1
View File
@@ -31,8 +31,10 @@
#include <wx/init.h>
#include <locale_io.h>
bool init_unit_test()
{
KI_TEST::SetMockConfigDir();
SetPgm( new MOCK_PGM_BASE() );
// Ensure the "C" locale is used in tests
@@ -57,4 +59,4 @@ int main( int argc, char* argv[] )
wxUninitialize();
return ret;
}
}