1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-28 02:34:27 +01:00

- made RUN_TEST so that it doesn't require a custom runTest by default

- updated generator to lay simple foundation for parameterized test support

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@101 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
mvandervoord
2010-11-10 14:53:34 +00:00
parent d1bd6e29cc
commit 953b55c7e3
7 changed files with 51 additions and 32 deletions

View File

@@ -40,12 +40,9 @@
#define TEST_ABORT() {longjmp(Unity.AbortFrame, 1);}
#define RUN_TEST(func, line_num) \
Unity.CurrentTestName = #func; \
Unity.CurrentTestLineNumber = line_num; \
Unity.NumberOfTests++; \
runTest(func); \
UnityConcludeTest();
#ifndef RUN_TEST
#define RUN_TEST(func, line_num) UnityDefaultTestRun(func, #func, line_num)
#endif
#define TEST_LINE_NUM (Unity.CurrentTestLineNumber)
#define TEST_IS_IGNORED (Unity.CurrentTestIgnored)