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

- unity_test_summary script callable from command line again

- fixed obj_file sorting in rakefiles
- gave better anchors for gcc to grab on test pass/fail by breaking them out as functions
- fixed minor type issues

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@137 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
mvandervoord
2012-01-02 21:38:36 +00:00
parent 3a82e1eeab
commit d0d5ec5d75
6 changed files with 62 additions and 41 deletions

View File

@@ -44,6 +44,9 @@ const _U_UINT UnitySizeMask[] =
#endif
};
void UnityPrintFail(void);
void UnityPrintOk(void);
//-----------------------------------------------
// Pretty Printers & Test Result Output Handlers
//-----------------------------------------------
@@ -219,6 +222,18 @@ void UnityPrintFloat(_UF number)
}
#endif
//-----------------------------------------------
void UnityPrintFail(void)
{
UnityPrint("FAIL");
}
void UnityPrintOk(void)
{
UnityPrint("OK");
}
//-----------------------------------------------
void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line)
{
@@ -880,7 +895,7 @@ void UnityFail(const char* msg, const UNITY_LINE_TYPE line)
UNITY_SKIP_EXECUTION;
UnityTestResultsBegin(Unity.TestFile, line);
UnityPrint("FAIL");
UnityPrintFail();
if (msg != NULL)
{
UNITY_OUTPUT_CHAR(':');
@@ -953,11 +968,11 @@ int UnityEnd(void)
UNITY_PRINT_EOL;
if (Unity.TestFailures == 0U)
{
UnityPrint("OK");
UnityPrintOk();
}
else
{
UnityPrint("FAIL");
UnityPrintFail();
}
UNITY_PRINT_EOL;
return Unity.TestFailures;