diff options
author | Cy Schubert <cy@FreeBSD.org> | 2015-07-01 03:12:13 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2015-07-01 03:12:13 +0000 |
commit | 873997f35a991eee09ed91148a0cf332360380da (patch) | |
tree | 5b1ffa3ad0e56e0e9f2991011729791ee86d7632 /tests/libntp/run-modetoa.c | |
parent | 4ba32eb5a8bf3455c09d1513ed2af8d2c861a6ba (diff) | |
download | src-vendor/ntp/4.2.8p3.tar.gz src-vendor/ntp/4.2.8p3.zip |
Vendor import ntp-4.2.8p3.vendor/ntp/4.2.8p3
Approved by: delphij (implicit, using SO hat)
Security: VuXML: 0d0f3050-1f69-11e5-9ba9-d050996490d0
Security: http://bugs.ntp.org/show_bug.cgi?id=2853
Security: https://www.kb.cert.org/vuls/id/668167
Security: http://support.ntp.org/bin/view/Main/SecurityNotice#June_2015_NTP_Security_Vulnerabi
Diffstat (limited to 'tests/libntp/run-modetoa.c')
-rw-r--r-- | tests/libntp/run-modetoa.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/libntp/run-modetoa.c b/tests/libntp/run-modetoa.c new file mode 100644 index 000000000000..334e08d63afc --- /dev/null +++ b/tests/libntp/run-modetoa.c @@ -0,0 +1,53 @@ +/* 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_KnownMode(void); +extern void test_UnknownMode(void); + + +//=======Test Reset Option===== +void resetTest() +{ + tearDown(); + setUp(); +} + +char *progname; + + +//=======MAIN===== +int main(int argc, char *argv[]) +{ + progname = argv[0]; + Unity.TestFile = "modetoa.c"; + UnityBegin("modetoa.c"); + RUN_TEST(test_KnownMode, 9); + RUN_TEST(test_UnknownMode, 15); + + return (UnityEnd()); +} |