diff --git a/aegisub/tests/main.cpp b/aegisub/tests/main.cpp index 54e935bd8..d021c0b3b 100644 --- a/aegisub/tests/main.cpp +++ b/aegisub/tests/main.cpp @@ -20,8 +20,17 @@ #include +#include + int main(int argc, char **argv) { - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); + int retval; + agi::log::log = new agi::log::LogSink("./"); + ::testing::InitGoogleTest(&argc, argv); + + retval = RUN_ALL_TESTS(); + + delete agi::log::log; + + return retval; }