summaryrefslogtreecommitdiff
path: root/tests/libntp/decodenetnum.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libntp/decodenetnum.c')
-rw-r--r--tests/libntp/decodenetnum.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libntp/decodenetnum.c b/tests/libntp/decodenetnum.c
index 0e9bc34922b7d..0d2b0b54e04b9 100644
--- a/tests/libntp/decodenetnum.c
+++ b/tests/libntp/decodenetnum.c
@@ -4,6 +4,7 @@
#include "unity.h"
+void setUp(void);
extern void test_IPv4AddressOnly(void);
extern void test_IPv4AddressWithPort(void);
//#ifdef ISC_PLATFORM_HAVEIPV6
@@ -15,6 +16,15 @@ extern void test_IllegalCharInPort(void);
void
+setUp(void)
+{
+ init_lib();
+
+ return;
+}
+
+
+void
test_IPv4AddressOnly(void) {
const char *str = "192.0.2.1";
sockaddr_u actual;