mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-25 17:31:36 +01:00
* Updated frame to not require separate pointer initialization
* Updated test runner to protect teardown (just in case someone tries to put ASSERTS in their teardown function) git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@13 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
@@ -5,14 +5,11 @@
|
||||
|
||||
#define EXPECT_ABORT_BEGIN \
|
||||
{ \
|
||||
jmp_buf NewFrame, *PrevFrame = Unity.pAbortFrame; \
|
||||
Unity.pAbortFrame = &NewFrame; \
|
||||
if (TEST_PROTECT()) \
|
||||
{
|
||||
|
||||
#define EXPECT_ABORT_END \
|
||||
} \
|
||||
Unity.pAbortFrame = PrevFrame; \
|
||||
}
|
||||
|
||||
void setUp(void)
|
||||
|
||||
@@ -53,7 +53,11 @@ static void runTest(UnityTestFunction test)
|
||||
setUp();
|
||||
test();
|
||||
}
|
||||
tearDown();
|
||||
|
||||
if (TEST_PROTECT())
|
||||
{
|
||||
tearDown();
|
||||
}
|
||||
}
|
||||
|
||||
int main(void)
|
||||
|
||||
Reference in New Issue
Block a user