From: Harlan Stenn Date: Tue, 19 May 2015 07:22:21 +0000 (+0000) Subject: Unity framework cleanup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e2ed0bf0692e4c4d0489435a619a7ff3d99e9c7;p=thirdparty%2Fntp.git Unity framework cleanup bk: 555ae4adsM_vpiJ9lPo1fwVfxARwsg --- diff --git a/tests/bug-2803/run-bug-2803.c b/tests/bug-2803/run-bug-2803.c new file mode 100644 index 000000000..7684a99d8 --- /dev/null +++ b/tests/bug-2803/run-bug-2803.c @@ -0,0 +1,46 @@ +/* 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 +#include + +//=======External Functions This Runner Calls===== +extern void setUp(void); +extern void tearDown(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + + +//=======MAIN===== +int main(void) +{ + Unity.TestFile = "bug-2803.c"; + UnityBegin(""); + + return (UnityEnd()); +}