]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Unity framework cleanup
authorHarlan Stenn <stenn@ntp.org>
Tue, 19 May 2015 07:22:21 +0000 (07:22 +0000)
committerHarlan Stenn <stenn@ntp.org>
Tue, 19 May 2015 07:22:21 +0000 (07:22 +0000)
bk: 555ae4adsM_vpiJ9lPo1fwVfxARwsg

tests/bug-2803/run-bug-2803.c [new file with mode: 0644]

diff --git a/tests/bug-2803/run-bug-2803.c b/tests/bug-2803/run-bug-2803.c
new file mode 100644 (file)
index 0000000..7684a99
--- /dev/null
@@ -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 <setjmp.h>
+#include <stdio.h>
+
+//=======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());
+}