mirror of
https://github.com/throwtheswitch/cexception.git
synced 2026-08-26 21:09:58 +00:00
Update CException to use Ceedling for testing. Why keep all of its own infrastructure when it's simpler to do this for the few of us actually developing CException?
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
/* AUTOGENERATED FILE. DO NOT EDIT. */
|
||||
|
||||
//=======Test Runner Used To Run Each Test Below=====
|
||||
#define RUN_TEST(TestFunc, TestLineNum) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
Unity.CurrentTestLineNumber = TestLineNum; \
|
||||
Unity.NumberOfTests++; \
|
||||
if (TEST_PROTECT()) \
|
||||
{ \
|
||||
setUp(); \
|
||||
TestFunc(); \
|
||||
} \
|
||||
if (TEST_PROTECT() && !TEST_IS_IGNORED) \
|
||||
{ \
|
||||
tearDown(); \
|
||||
} \
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_BasicTryDoesNothingIfNoThrow(void);
|
||||
extern void test_BasicThrowAndCatch(void);
|
||||
extern void test_BasicThrowAndCatch_WithMiniSyntax(void);
|
||||
extern void test_VerifyVolatilesSurviveThrowAndCatch(void);
|
||||
extern void test_ThrowFromASubFunctionAndCatchInRootFunc(void);
|
||||
extern void test_ThrowAndCatchFromASubFunctionAndRethrowToCatchInRootFunc(void);
|
||||
extern void test_ThrowAndCatchFromASubFunctionAndNoRethrowToCatchInRootFunc(void);
|
||||
extern void test_ThrowAnErrorThenEnterATryBlockFromWithinCatch_VerifyThisDoesntCorruptExceptionId(void);
|
||||
extern void test_ThrowAnErrorThenEnterATryBlockFromWithinCatch_VerifyThatEachExceptionIdIndependent(void);
|
||||
extern void test_CanHaveMultipleTryBlocksInASingleFunction(void);
|
||||
extern void test_CanHaveNestedTryBlocksInASingleFunction_ThrowInside(void);
|
||||
extern void test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside(void);
|
||||
extern void test_AThrowWithoutATryCatchWillUseDefaultHandlerIfSpecified(void);
|
||||
extern void test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch(void);
|
||||
extern void test_AbilityToExitTryWithoutThrowingAnError(void);
|
||||
extern void test_AbilityToExitTryWillOnlyExitOneLevel(void);
|
||||
|
||||
//=======MAIN=====
|
||||
int main(void)
|
||||
{
|
||||
UnityBegin("TestException.c");
|
||||
RUN_TEST(test_BasicTryDoesNothingIfNoThrow, 16);
|
||||
RUN_TEST(test_BasicThrowAndCatch, 37);
|
||||
RUN_TEST(test_BasicThrowAndCatch_WithMiniSyntax, 56);
|
||||
RUN_TEST(test_VerifyVolatilesSurviveThrowAndCatch, 76);
|
||||
RUN_TEST(test_ThrowFromASubFunctionAndCatchInRootFunc, 105);
|
||||
RUN_TEST(test_ThrowAndCatchFromASubFunctionAndRethrowToCatchInRootFunc, 148);
|
||||
RUN_TEST(test_ThrowAndCatchFromASubFunctionAndNoRethrowToCatchInRootFunc, 167);
|
||||
RUN_TEST(test_ThrowAnErrorThenEnterATryBlockFromWithinCatch_VerifyThisDoesntCorruptExceptionId, 184);
|
||||
RUN_TEST(test_ThrowAnErrorThenEnterATryBlockFromWithinCatch_VerifyThatEachExceptionIdIndependent, 202);
|
||||
RUN_TEST(test_CanHaveMultipleTryBlocksInASingleFunction, 229);
|
||||
RUN_TEST(test_CanHaveNestedTryBlocksInASingleFunction_ThrowInside, 254);
|
||||
RUN_TEST(test_CanHaveNestedTryBlocksInASingleFunction_ThrowOutside, 281);
|
||||
RUN_TEST(test_AThrowWithoutATryCatchWillUseDefaultHandlerIfSpecified, 308);
|
||||
RUN_TEST(test_AThrowWithoutOutsideATryCatchWillUseDefaultHandlerEvenAfterTryCatch, 319);
|
||||
RUN_TEST(test_AbilityToExitTryWithoutThrowingAnError, 344);
|
||||
RUN_TEST(test_AbilityToExitTryWillOnlyExitOneLevel, 363);
|
||||
return (UnityEnd());
|
||||
}
|
||||
Reference in New Issue
Block a user