test/{visit_archive,dump_text_file}: add basic config file support (not wired yet)

This commit is contained in:
Max Kellermann
2022-02-14 16:36:55 +01:00
parent ab5b6f83fd
commit b1096a9935
3 changed files with 17 additions and 14 deletions

View File

@@ -140,12 +140,11 @@ class GlobalInit {
const ScopeArchivePluginsInit archive_plugins_init;
#endif
const ScopeInputPluginsInit input_plugins_init;
const ScopeInputPluginsInit input_plugins_init{config, io_thread.GetEventLoop()};
public:
explicit GlobalInit(Path config_path)
:config(AutoLoadConfigFile(config_path)),
input_plugins_init(config, io_thread.GetEventLoop())
:config(AutoLoadConfigFile(config_path))
{
io_thread.Start();
}