From 65e0a0d664c5ea0f6933d15463ee72e5054a0491 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Fri, 31 Mar 2017 23:08:44 -0700 Subject: [PATCH] Tweak unit test error reporting slightly --- src/twtest/test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/twtest/test.cpp b/src/twtest/test.cpp index a2d3e44..799d587 100644 --- a/src/twtest/test.cpp +++ b/src/twtest/test.cpp @@ -247,6 +247,7 @@ static void Test(int testID) } catch (eError& error) { + TCERR << "FAILED: " ; cTWUtil::PrintErrorMsg(error); failed_count++; } @@ -351,9 +352,9 @@ int _tmain(int argc, TCHAR** argv) //TEST(cRefCountObj::AllRefCountObjDestoryed() == true); // force user to hit - + std::cout << std::endl << "Tests completed with " << failed_count << " failures." << std::endl; - + return failed_count ? -1 : 0; }