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

- NOTE: now you need to define UNITY_SUPPORT_TEST_CASES to use TEST_CASE. This is to avoid problems with compilers that don't support varargs in macros.

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@116 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
mvandervoord
2011-01-24 12:57:50 +00:00
parent 3e472491c9
commit 6787ada5ad
8 changed files with 13 additions and 1 deletions

View File

@@ -32,6 +32,9 @@
// - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
// - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests.
// Test Cases
// - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
//-------------------------------------------------------
// Test Running Macros
//-------------------------------------------------------
@@ -47,7 +50,9 @@
#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

View File

@@ -19,6 +19,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- UNITY_SUPPORT_TEST_CASES
object_files:
prefix: '-o'
extension: '.o'

View File

@@ -19,6 +19,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- UNITY_SUPPORT_TEST_CASES
- 'UNITY_POINTER_WIDTH=64'
object_files:
prefix: '-o'

View File

@@ -40,7 +40,8 @@ compiler:
- UNITY_INT_WIDTH=16
- UNITY_POINTER_WIDTH=16
- CMOCK_MEM_STATIC
- CMOCK_MEM_SIZE=3000
- CMOCK_MEM_SIZE=3000
- UNITY_SUPPORT_TEST_CASES
- _PICC18
object_files:
# prefix: '-O' # Hi-Tech doesn't want a prefix. They key off of filename .extensions, instead

View File

@@ -38,6 +38,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r79'

View File

@@ -38,6 +38,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r79'

View File

@@ -41,6 +41,7 @@ compiler:
items:
- 'IAR'
- 'UNITY_SUPPORT_64'
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r79'

View File

@@ -42,6 +42,7 @@ compiler:
- '__MSP430F149__'
- 'INT_WIDTH=16'
- 'UNITY_EXCLUDE_FLOAT'
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r43'