From c33afffa0397ca60edd9bc2ffb2c14236337efdd Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Wed, 9 Feb 2011 23:37:18 +0000 Subject: [PATCH] Init agi::log::log. Originally committed to SVN as r5337. --- aegisub/tests/main.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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; }