* fixed error where fallback function was showing wrong ID

This commit is contained in:
Mark VanderVoord
2013-09-19 10:56:30 -04:00
parent dd9dcde2f0
commit f64bdb2ea1
3 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -2,6 +2,7 @@
#include "CException.h"
volatile int TestingTheFallback;
volatile int TestingTheFallbackId;
void setUp(void)
{
@@ -314,6 +315,7 @@ void test_AThrowWithoutATryCatchWillUseDefaultHandlerIfSpecified(void)
//We know the fallback was run because it decrements the counter above
TEST_ASSERT_FALSE(TestingTheFallback);
TEST_ASSERT_EQUAL(0xBE, TestingTheFallbackId);
}
void test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch(void)
@@ -336,4 +338,5 @@ void test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch(vo
//We know the fallback was run because it decrements the counter above
TEST_ASSERT_FALSE(TestingTheFallback);
}
TEST_ASSERT_EQUAL(0xBE, TestingTheFallbackId);
}