summaryrefslogtreecommitdiff
path: root/auto_tests/TCP_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-15 20:57:55 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-15 20:57:55 -0400
commita5141679527b10de8cc6e0aa211873706abac149 (patch)
tree4f165634167a7c24ecc36d009467db33e670fece /auto_tests/TCP_test.c
parent1e7164fcee879a4392ccb45c80607bd5b5c71352 (diff)
Exposed and tested disconnect notification TCP packets.
Diffstat (limited to 'auto_tests/TCP_test.c')
-rw-r--r--auto_tests/TCP_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c
index 29a9f518..ca5afd9a 100644
--- a/auto_tests/TCP_test.c
+++ b/auto_tests/TCP_test.c
@@ -446,6 +446,15 @@ START_TEST(test_client)
446 do_TCP_connection(conn); 446 do_TCP_connection(conn);
447 do_TCP_connection(conn2); 447 do_TCP_connection(conn2);
448 ck_assert_msg(data_callback_good == 1, "data callback not called"); 448 ck_assert_msg(data_callback_good == 1, "data callback not called");
449 status_callback_good = 0;
450 send_disconnect_request(conn2, 0);
451 c_sleep(50);
452 do_TCP_server(tcp_s);
453 c_sleep(50);
454 do_TCP_connection(conn);
455 do_TCP_connection(conn2);
456 ck_assert_msg(status_callback_good == 1, "status callback not called");
457 ck_assert_msg(status_callback_status == 1, "wrong status");
449} 458}
450END_TEST 459END_TEST
451 460