[Git][NTPsec/ntpsec][master] Convert sfptostr.c.

Amar Takhar gitlab at mg.gitlab.com
Tue Nov 24 12:37:08 UTC 2015


Amar Takhar pushed to branch master at NTPsec / ntpsec


Commits:
425d2481 by Amar Takhar at 2015-11-24T07:36:49Z
Convert sfptostr.c.

- - - - -


3 changed files:

- tests/common/tests_main.c
- tests/libntp/sfptostr.c
- tests/wscript


Changes:

=====================================
tests/common/tests_main.c
=====================================
--- a/tests/common/tests_main.c
+++ b/tests/common/tests_main.c
@@ -56,7 +56,7 @@ static void RunAllTests(void)
 //	RUN_TEST_GROUP(prettydate);
 //	RUN_TEST_GROUP(recvbuff);
 //	RUN_TEST_GROUP(refnumtoa);
-//	RUN_TEST_GROUP(sfptostr);
+	RUN_TEST_GROUP(sfptostr);
 //	RUN_TEST_GROUP(socktoa);
 //	RUN_TEST_GROUP(ssl_init);
 //	RUN_TEST_GROUP(statestr);


=====================================
tests/libntp/sfptostr.c
=====================================
--- a/tests/libntp/sfptostr.c
+++ b/tests/libntp/sfptostr.c
@@ -1,7 +1,5 @@
-extern "C" {
 #include "unity.h"
 #include "unity_fixture.h"
-}
 
 TEST_GROUP(sfptostr);
 
@@ -16,14 +14,9 @@ TEST_TEAR_DOWN(sfptostr) {}
 
 #include "libntptest.h"
 
-extern "C" {
 #include "ntp_fp.h"
-};
 
-class sfptostr : public libntptest {
-protected:
-	static const int SFP_MAX_PRECISION = 6;
-};
+static const int SFP_MAX_PRECISION = 6;
 
 TEST(sfptostr, PositiveInteger) {
 	s_fp test = 300 << 16; // exact 300.000000


=====================================
tests/wscript
=====================================
--- a/tests/wscript
+++ b/tests/wscript
@@ -71,7 +71,7 @@ def build(ctx):
 #		"libntp/prettydate.c",
 #		"libntp/recvbuff.c",
 #		"libntp/refnumtoa.c",
-#		"libntp/sfptostr.c",
+		"libntp/sfptostr.c",
 #		"libntp/socktoa.c",
 #		"libntp/ssl_init.c",
 #		"libntp/statestr.c",



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/425d2481f803e5e5ba6a3ca0fe1555b83ec2bd91
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151124/a49647a0/attachment.html>


More information about the vc mailing list