提交 6787ada5 编写于 作者: M mvandervoord

- NOTE: now you need to define UNITY_SUPPORT_TEST_CASES to use TEST_CASE. ...

- 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
上级 3e472491
......@@ -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
......
......@@ -19,6 +19,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- UNITY_SUPPORT_TEST_CASES
object_files:
prefix: '-o'
extension: '.o'
......
......@@ -19,6 +19,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- UNITY_SUPPORT_TEST_CASES
- 'UNITY_POINTER_WIDTH=64'
object_files:
prefix: '-o'
......
......@@ -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
......
......@@ -38,6 +38,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r79'
......
......@@ -38,6 +38,7 @@ compiler:
prefix: '-D'
items:
- UNITY_SUPPORT_64
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r79'
......
......@@ -41,6 +41,7 @@ compiler:
items:
- 'IAR'
- 'UNITY_SUPPORT_64'
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r79'
......
......@@ -42,6 +42,7 @@ compiler:
- '__MSP430F149__'
- 'INT_WIDTH=16'
- 'UNITY_EXCLUDE_FLOAT'
- 'UNITY_SUPPORT_TEST_CASES'
object_files:
prefix: '-o'
extension: '.r43'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册