- removed TEST_CASE(...) macro from Unity because it's not compatible with a number of compilers. User will need to define it themselves to use it. (it's an empty define anyway)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@117 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
mvandervoord
2011-02-04 19:50:49 +00:00
parent 6787ada5ad
commit 44fa5bef55
2 changed files with 5 additions and 4 deletions

View File

@ -35,6 +35,9 @@
// Test Cases // Test Cases
// - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script // - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
// Parameterized Tests
// - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing
//------------------------------------------------------- //-------------------------------------------------------
// Test Running Macros // Test Running Macros
//------------------------------------------------------- //-------------------------------------------------------
@ -50,10 +53,6 @@
#define TEST_LINE_NUM (Unity.CurrentTestLineNumber) #define TEST_LINE_NUM (Unity.CurrentTestLineNumber)
#define TEST_IS_IGNORED (Unity.CurrentTestIgnored) #define TEST_IS_IGNORED (Unity.CurrentTestIgnored)
#ifdef UNITY_SUPPORT_TEST_CASES
#define TEST_CASE(...)
#endif
//------------------------------------------------------- //-------------------------------------------------------
// Basic Fail and Ignore // Basic Fail and Ignore
//------------------------------------------------------- //-------------------------------------------------------

View File

@ -7,6 +7,8 @@
#include <setjmp.h> #include <setjmp.h>
#include "unity.h" #include "unity.h"
#define TEST_CASE(...)
#define EXPECT_ABORT_BEGIN \ #define EXPECT_ABORT_BEGIN \
if (TEST_PROTECT()) \ if (TEST_PROTECT()) \
{ {