If any assert in SetUp function fails that test will be skipped.
This commit is contained in:
parent
3efe0fed79
commit
6d3454e153
11 changed files with 377 additions and 293 deletions
|
@ -36,7 +36,7 @@ int _testAssertsFailed;
|
|||
int _testAssertsPassed;
|
||||
|
||||
void
|
||||
_InitTestEnvironment() // InitTestEnvironment
|
||||
_InitTestEnvironment()
|
||||
{
|
||||
_testReturnValue = 0;
|
||||
_testAssertsFailed = 0;
|
||||
|
@ -56,8 +56,13 @@ _QuitTestEnvironment()
|
|||
return _testReturnValue;
|
||||
}
|
||||
|
||||
int
|
||||
_CountFailedAsserts() {
|
||||
return _testAssertsFailed;
|
||||
}
|
||||
|
||||
void
|
||||
AssertEquals(const int expected, const int actual, char *message, ...)
|
||||
AssertEquals(int expected, int actual, char *message, ...)
|
||||
{
|
||||
va_list args;
|
||||
char buf[256];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue