diff options
Diffstat (limited to 'contrib/ntp/tests/libntp/run-netof.c')
-rw-r--r-- | contrib/ntp/tests/libntp/run-netof.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/contrib/ntp/tests/libntp/run-netof.c b/contrib/ntp/tests/libntp/run-netof.c index 401192d..7a714f5 100644 --- a/contrib/ntp/tests/libntp/run-netof.c +++ b/contrib/ntp/tests/libntp/run-netof.c @@ -22,11 +22,14 @@ #include "unity.h" #include <setjmp.h> #include <stdio.h> +#include "config.h" +#include "ntp_stdlib.h" +#include "ntp_calendar.h" +#include "sockaddrtest.h" //=======External Functions This Runner Calls===== extern void setUp(void); extern void tearDown(void); -void resetTest(void); extern void test_ClassBAddress(void); extern void test_ClassCAddress(void); extern void test_ClassAAddress(void); @@ -34,25 +37,25 @@ extern void test_IPv6Address(void); //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); } -char *progname; +char const *progname; //=======MAIN===== int main(int argc, char *argv[]) { progname = argv[0]; - Unity.TestFile = "netof.c"; UnityBegin("netof.c"); - RUN_TEST(test_ClassBAddress, 10); - RUN_TEST(test_ClassCAddress, 20); - RUN_TEST(test_ClassAAddress, 30); - RUN_TEST(test_IPv6Address, 43); + RUN_TEST(test_ClassBAddress, 11); + RUN_TEST(test_ClassCAddress, 12); + RUN_TEST(test_ClassAAddress, 13); + RUN_TEST(test_IPv6Address, 14); return (UnityEnd()); } |