1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-26 09:51:36 +01:00

- removed pointless cast from UnityPrint

- test executable returns number of failures as exit status
- caught up lame text docs

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@90 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
mvandervoord
2010-08-13 00:32:34 +00:00
parent 7ff6761ff1
commit f5ce02f135
5 changed files with 69 additions and 82 deletions

View File

@@ -34,7 +34,7 @@ const char* UnityStrNullPointerForActual = " Actual pointer was NULL";
void UnityPrint(const char* string)
{
unsigned char* pch = (unsigned char*)string;
const char* pch = string;
if (pch != NULL)
{
@@ -796,7 +796,7 @@ void UnityBegin(void)
}
//-----------------------------------------------
void UnityEnd(void)
int UnityEnd(void)
{
UnityPrint("-----------------------");
UNITY_PRINT_CR_LF;
@@ -816,4 +816,5 @@ void UnityEnd(void)
UnityPrint("FAIL");
}
UNITY_PRINT_CR_LF;
return Unity.TestFailures;
}

View File

@@ -187,7 +187,7 @@ extern struct _Unity Unity;
//-------------------------------------------------------
void UnityBegin(void);
void UnityEnd(void);
int UnityEnd(void);
void UnityConcludeTest(void);
//-------------------------------------------------------