summaryrefslogtreecommitdiff
path: root/auto_tests/network_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/network_test.c')
-rw-r--r--auto_tests/network_test.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/auto_tests/network_test.c b/auto_tests/network_test.c
index 9d07fbb4..c1ac8084 100644
--- a/auto_tests/network_test.c
+++ b/auto_tests/network_test.c
@@ -134,22 +134,12 @@ START_TEST(test_ip_equal)
134} 134}
135END_TEST 135END_TEST
136 136
137START_TEST(test_struct_sizes)
138{
139 ck_assert_msg(sizeof(IP4) == 4, "sizeof(IP4): expected result 4, got %u.", sizeof(IP4));
140 ck_assert_msg(sizeof(IP6) == 16, "sizeof(IP6): expected result 16, got %u.", sizeof(IP6));
141 ck_assert_msg(sizeof(IP) == 17, "sizeof(IP): expected result 17, got %u.", sizeof(IP));
142 ck_assert_msg(sizeof(IP_Port) == 19, "sizeof(IP_Port): expected result 19, got %u.", sizeof(IP_Port));
143}
144END_TEST
145
146Suite *network_suite(void) 137Suite *network_suite(void)
147{ 138{
148 Suite *s = suite_create("Network"); 139 Suite *s = suite_create("Network");
149 140
150 DEFTESTCASE(addr_resolv_localhost); 141 DEFTESTCASE(addr_resolv_localhost);
151 DEFTESTCASE(ip_equal); 142 DEFTESTCASE(ip_equal);
152 DEFTESTCASE(struct_sizes);
153 143
154 return s; 144 return s;
155} 145}