Skip to content

Commit

Permalink
Tweak unit test error reporting slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
brc0x1 committed Apr 1, 2017
1 parent 7b86cdd commit 65e0a0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/twtest/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ static void Test(int testID)
}
catch (eError& error)
{
TCERR << "FAILED: " ;
cTWUtil::PrintErrorMsg(error);
failed_count++;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 65e0a0d

Please sign in to comment.