From 44fa5bef55aafbeba585e06c7113b029308ea8d2 Mon Sep 17 00:00:00 2001 From: mvandervoord Date: Fri, 4 Feb 2011 19:50:49 +0000 Subject: [PATCH] - 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 --- src/unity.h | 7 +++---- test/testparameterized.c | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/unity.h b/src/unity.h index 28d11fd..e176193 100644 --- a/src/unity.h +++ b/src/unity.h @@ -35,6 +35,9 @@ // Test Cases // - 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 //------------------------------------------------------- @@ -50,10 +53,6 @@ #define TEST_LINE_NUM (Unity.CurrentTestLineNumber) #define TEST_IS_IGNORED (Unity.CurrentTestIgnored) -#ifdef UNITY_SUPPORT_TEST_CASES -#define TEST_CASE(...) -#endif - //------------------------------------------------------- // Basic Fail and Ignore //------------------------------------------------------- diff --git a/test/testparameterized.c b/test/testparameterized.c index 3192c5d..e0d86e2 100644 --- a/test/testparameterized.c +++ b/test/testparameterized.c @@ -7,6 +7,8 @@ #include #include "unity.h" +#define TEST_CASE(...) + #define EXPECT_ABORT_BEGIN \ if (TEST_PROTECT()) \ {