From: Carl Hetherington Date: Tue, 18 Feb 2020 19:21:51 +0000 (+0100) Subject: Write logs during tests to a file. X-Git-Tag: v2.15.43~8 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=875d15256aab7ebf9e9b0548b68d88056695d1cc Write logs during tests to a file. --- diff --git a/test/test.cc b/test/test.cc index 836e74f52..c0d5d776f 100644 --- a/test/test.cc +++ b/test/test.cc @@ -35,6 +35,8 @@ #include "lib/dcp_content_type.h" #include "lib/log_entry.h" #include "lib/compose.hpp" +#include "lib/file_log.h" +#include "lib/dcpomatic_log.h" #include "test.h" #include #include @@ -113,6 +115,8 @@ struct TestConfig if (env_private) { private_data = env_private; } + + dcpomatic_log.reset (new FileLog("build/test/log")); } ~TestConfig ()