Tweak unit test error reporting slightly

This commit is contained in:
Brian Cox 2017-03-31 23:08:44 -07:00
parent 7b86cdd134
commit 65e0a0d664
1 changed files with 3 additions and 2 deletions

View File

@ -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 <CR>
std::cout << std::endl << "Tests completed with " << failed_count << " failures." << std::endl;
return failed_count ? -1 : 0;
}