mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-26 01:41:35 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user