diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2018-01-19 11:12:29 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2018-01-19 11:12:29 +0300 |
commit | cf46693fd118debeed3e4e48b730ad8706a16630 (patch) | |
tree | f58f6b436ad249c6a18caf3a520aa7713d998dec /tests/libs/zbxcommshigh | |
parent | 870291f4c60608ec2212d30f48bd8f385a55d410 (diff) |
.......... [ZBXNEXT-3581] tcp close and added Sync library to handle binary data
Diffstat (limited to 'tests/libs/zbxcommshigh')
-rw-r--r-- | tests/libs/zbxcommshigh/zbx_tcp_recv_ext.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libs/zbxcommshigh/zbx_tcp_recv_ext.c b/tests/libs/zbxcommshigh/zbx_tcp_recv_ext.c index f121191d1a7..363d8ae3cde 100644 --- a/tests/libs/zbxcommshigh/zbx_tcp_recv_ext.c +++ b/tests/libs/zbxcommshigh/zbx_tcp_recv_ext.c @@ -127,7 +127,10 @@ void zbx_mock_test_entry(void **state) fail_msg("Unexpected return code '%s'", zbx_result_string(SUCCEED_OR_FAIL(received))); if (FAIL == SUCCEED_OR_FAIL(received)) + { + zbx_tcp_close(&s); return; + } if (received != (expected = read_yaml_uint64("number of bytes"))) { |