loolwsd/test/test.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
New commits: commit 3d9b50aeebdd5b3fadc6daacfba78daf9c7bec3c Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Wed Sep 14 17:43:56 2016 -0400 loolwsd: unittest runner improvement and logging Change-Id: I4ddce1775b620e9140366ae7965b37b6cce8689e Reviewed-on: https://gerrit.libreoffice.org/28958 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loolwsd/test/test.cpp b/loolwsd/test/test.cpp index af0ff59..a8c697c 100644 --- a/loolwsd/test/test.cpp +++ b/loolwsd/test/test.cpp @@ -19,6 +19,8 @@ #include <Poco/RegularExpression.h> +#include <Log.hpp> + class HTTPGetTest; bool filterTests(CPPUNIT_NS::TestRunner& runner, CPPUNIT_NS::Test* testRegistry) @@ -57,7 +59,11 @@ bool filterTests(CPPUNIT_NS::TestRunner& runner, CPPUNIT_NS::Test* testRegistry) } } - std::cerr << "Failed to match [" << testName << "] to any names in the test-suite. Running all tests." << std::endl; + if (!haveTests) + { + std::cerr << "Failed to match [" << testName << "] to any names in the test-suite. Running all tests." << std::endl; + } + return haveTests; } @@ -66,6 +72,9 @@ bool filterTests(CPPUNIT_NS::TestRunner& runner, CPPUNIT_NS::Test* testRegistry) int main(int /*argc*/, char** /*argv*/) { + Log::initialize("tst", "trace", true, false); + + CPPUNIT_NS::TestResult controller; CPPUNIT_NS::TestResultCollector result; controller.addListener(&result); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits