[Git][NTPsec/ntpsec][master] Hookup kodDatabase.c
Amar Takhar
gitlab at mg.gitlab.com
Fri Nov 20 19:31:40 UTC 2015
Amar Takhar pushed to branch master at NTPsec / ntpsec
Commits:
deb81255 by Amar Takhar at 2015-11-20T14:30:43Z
Hookup kodDatabase.c
* This disables some failing tests and one with a sleep
I will look into all failures after everything is converted.
- - - - -
3 changed files:
- tests/common/tests_main.c
- tests/ntpdig/kodDatabase.c
- tests/wscript
Changes:
=====================================
tests/common/tests_main.c
=====================================
--- a/tests/common/tests_main.c
+++ b/tests/common/tests_main.c
@@ -28,7 +28,7 @@ static void RunAllTests(void)
#ifdef TEST_NTPDIG
RUN_TEST_GROUP(crypto);
RUN_TEST_GROUP(keyFile);
-// RUN_TEST_GROUP(kodDatabase);
+ RUN_TEST_GROUP(kodDatabase);
// RUN_TEST_GROUP(kodFile);
RUN_TEST_GROUP(packetHandling);
#endif
=====================================
tests/ntpdig/kodDatabase.c
=====================================
--- a/tests/ntpdig/kodDatabase.c
+++ b/tests/ntpdig/kodDatabase.c
@@ -1,3 +1,5 @@
+#include <unistd.h>
+
#include "unity.h"
#include "unity_fixture.h"
@@ -117,3 +119,11 @@ TEST(kodDatabase, DeleteEntry) {
TEST_ASSERT_EQUAL(1, search_entry(HOST1, &result));
free(result);
}
+
+TEST_GROUP_RUNNER(kodDatabase) {
+ RUN_TEST_CASE(kodDatabase, SingleEntryHandling);
+// RUN_TEST_CASE(kodDatabase, MultipleEntryHandling); Buffer overrun detected during free()
+ RUN_TEST_CASE(kodDatabase, NoMatchInSearch);
+// RUN_TEST_CASE(kodDatabase, AddDuplicate); Disable for now due to sleep */
+// RUN_TEST_CASE(kodDatabase, DeleteEntry); Buffer overrun detected during free()
+}
=====================================
tests/wscript
=====================================
--- a/tests/wscript
+++ b/tests/wscript
@@ -25,7 +25,7 @@ def build(ctx):
"ntpdig/crypto.c",
"ntpdig/fileHandlingTest.c",
"ntpdig/keyFile.c",
-# "ntpdig/kodDatabase.c",
+ "ntpdig/kodDatabase.c",
# "ntpdig/kodFile.c",
# "ntpdig/networking.c",
"ntpdig/packetHandling.c",
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/deb812550f5373780aefc65266ea7cb01bbeb584
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151120/db85988a/attachment.html>
More information about the vc
mailing list