testsample_run1.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* AUTOGENERATED FILE. DO NOT EDIT. */
  2. /*=======Test Runner Used To Run Each Test Below=====*/
  3. #define RUN_TEST(TestFunc, TestLineNum) \
  4. { \
  5. Unity.CurrentTestName = #TestFunc; \
  6. Unity.CurrentTestLineNumber = TestLineNum; \
  7. Unity.NumberOfTests++; \
  8. if (TEST_PROTECT()) \
  9. { \
  10. CEXCEPTION_T e; \
  11. Try { \
  12. setUp(); \
  13. TestFunc(); \
  14. } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
  15. } \
  16. if (TEST_PROTECT() && !TEST_IS_IGNORED) \
  17. { \
  18. tearDown(); \
  19. } \
  20. UnityConcludeTest(); \
  21. }
  22. /*=======Automagically Detected Files To Include=====*/
  23. #include "unity.h"
  24. #include <setjmp.h>
  25. #include <stdio.h>
  26. #include "CException.h"
  27. #include "one.h"
  28. #include "two.h"
  29. #include "funky.h"
  30. #include "stanky.h"
  31. #include <setjmp.h>
  32. int GlobalExpectCount;
  33. int GlobalVerifyOrder;
  34. char* GlobalOrderError;
  35. /*=======External Functions This Runner Calls=====*/
  36. extern void setUp(void);
  37. extern void tearDown(void);
  38. extern void test_TheFirstThingToTest(void);
  39. extern void test_TheSecondThingToTest(void);
  40. extern void test_TheThirdThingToTest(void);
  41. extern void test_TheFourthThingToTest(void);
  42. /*=======Test Reset Option=====*/
  43. void resetTest(void);
  44. void resetTest(void)
  45. {
  46. tearDown();
  47. setUp();
  48. }
  49. /*=======MAIN=====*/
  50. int main(void)
  51. {
  52. UnityBegin("testdata/testsample.c");
  53. RUN_TEST(test_TheFirstThingToTest, 21);
  54. RUN_TEST(test_TheSecondThingToTest, 43);
  55. RUN_TEST(test_TheThirdThingToTest, 53);
  56. RUN_TEST(test_TheFourthThingToTest, 58);
  57. return (UnityEnd());
  58. }