]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Update some test runners
authorHarlan Stenn <stenn@ntp.org>
Thu, 3 Dec 2015 12:07:30 +0000 (12:07 +0000)
committerHarlan Stenn <stenn@ntp.org>
Thu, 3 Dec 2015 12:07:30 +0000 (12:07 +0000)
bk: 56603082xlrDXM3oJEOZfyUXDNbJOg

tests/libntp/run-sfptostr.c
tests/sandbox/run-uglydate.c

index bae4e5f488151d7d4abd773920491427eb5f7b4e..1dba912d5c1fa6f8851bab19cd2ccc8c2c071b74 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include "config.h"
 #include "ntp_fp.h"
+#include "ntp_stdlib.h"
 
 //=======External Functions This Runner Calls=====
 extern void setUp(void);
@@ -54,14 +55,14 @@ int main(int argc, char *argv[])
 {
   progname = argv[0];
   UnityBegin("sfptostr.c");
-  RUN_TEST(test_PositiveInteger, 12);
-  RUN_TEST(test_NegativeInteger, 13);
-  RUN_TEST(test_PositiveIntegerPositiveFraction, 14);
-  RUN_TEST(test_NegativeIntegerNegativeFraction, 15);
-  RUN_TEST(test_PositiveIntegerNegativeFraction, 16);
-  RUN_TEST(test_NegativeIntegerPositiveFraction, 17);
-  RUN_TEST(test_SingleDecimalInteger, 18);
-  RUN_TEST(test_SingleDecimalRounding, 19);
+  RUN_TEST(test_PositiveInteger, 13);
+  RUN_TEST(test_NegativeInteger, 14);
+  RUN_TEST(test_PositiveIntegerPositiveFraction, 15);
+  RUN_TEST(test_NegativeIntegerNegativeFraction, 16);
+  RUN_TEST(test_PositiveIntegerNegativeFraction, 17);
+  RUN_TEST(test_NegativeIntegerPositiveFraction, 18);
+  RUN_TEST(test_SingleDecimalInteger, 19);
+  RUN_TEST(test_SingleDecimalRounding, 20);
 
   return (UnityEnd());
 }
index e65cd01097ad32903efaef0c91617b432a43c66e..5a5a7161d851d586b2bc641f4efadea4b2972326 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include "config.h"
 #include "ntp_fp.h"
+#include "ntp_stdlib.h"
 
 //=======External Functions This Runner Calls=====
 extern void setUp(void);
@@ -47,7 +48,7 @@ int main(int argc, char *argv[])
 {
   progname = argv[0];
   UnityBegin("uglydate.c");
-  RUN_TEST(test_ConstantDateTime, 9);
+  RUN_TEST(test_ConstantDateTime, 10);
 
   return (UnityEnd());
 }