diff options
Diffstat (limited to 'contrib/ntp/tests/libntp/run-buftvtots.c')
-rw-r--r-- | contrib/ntp/tests/libntp/run-buftvtots.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/contrib/ntp/tests/libntp/run-buftvtots.c b/contrib/ntp/tests/libntp/run-buftvtots.c index c54c339..82a1969 100644 --- a/contrib/ntp/tests/libntp/run-buftvtots.c +++ b/contrib/ntp/tests/libntp/run-buftvtots.c @@ -22,36 +22,42 @@ #include "unity.h" #include <setjmp.h> #include <stdio.h> +#include "config.h" +#include "ntp_types.h" +#include "ntp_stdlib.h" +#include "lfptest.h" +#include "ntp_unixtime.h" +#include <math.h> //=======External Functions This Runner Calls===== extern void setUp(void); extern void tearDown(void); -extern void test_ZeroBuffer(); -extern void test_IntegerAndFractionalBuffer(); -extern void test_IllegalMicroseconds(); -extern void test_AlwaysFalseOnWindows(); +extern void test_ZeroBuffer(void); +extern void test_IntegerAndFractionalBuffer(void); +extern void test_IllegalMicroseconds(void); +extern void test_AlwaysFalseOnWindows(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 = "buftvtots.c"; UnityBegin("buftvtots.c"); - RUN_TEST(test_ZeroBuffer, 16); - RUN_TEST(test_IntegerAndFractionalBuffer, 30); - RUN_TEST(test_IllegalMicroseconds, 53); - RUN_TEST(test_AlwaysFalseOnWindows, 66); + RUN_TEST(test_ZeroBuffer, 14); + RUN_TEST(test_IntegerAndFractionalBuffer, 15); + RUN_TEST(test_IllegalMicroseconds, 16); + RUN_TEST(test_AlwaysFalseOnWindows, 17); return (UnityEnd()); } |