diff options
Diffstat (limited to 'contrib/ntp/tests/libntp/run-tstotv.c')
-rw-r--r-- | contrib/ntp/tests/libntp/run-tstotv.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/contrib/ntp/tests/libntp/run-tstotv.c b/contrib/ntp/tests/libntp/run-tstotv.c index cf7dd17..c060f77 100644 --- a/contrib/ntp/tests/libntp/run-tstotv.c +++ b/contrib/ntp/tests/libntp/run-tstotv.c @@ -22,6 +22,9 @@ #include "unity.h" #include <setjmp.h> #include <stdio.h> +#include "config.h" +#include "ntp_fp.h" +#include "timevalops.h" //=======External Functions This Runner Calls===== extern void setUp(void); @@ -32,24 +35,24 @@ extern void test_MicrosecondsRounding(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 = "tstotv.c"; UnityBegin("tstotv.c"); - RUN_TEST(test_Seconds, 9); - RUN_TEST(test_MicrosecondsExact, 21); - RUN_TEST(test_MicrosecondsRounding, 35); + RUN_TEST(test_Seconds, 8); + RUN_TEST(test_MicrosecondsExact, 9); + RUN_TEST(test_MicrosecondsRounding, 10); return (UnityEnd()); } |