protocol

protocol tests
Log | Files | Refs | Submodules | README | git clone https://git.ne02ptzero.me/git/protocol

commit f00dd588606c4d7a329c3106168f2aa8af863e8b
parent 6dc80241738ec843343131eb4c15bb57ef99008c
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri, 24 Mar 2017 17:54:56 +0100

Add(Test): Add a test on read return size

Diffstat:
Msrc/client_test.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/client_test.c b/src/client_test.c @@ -211,6 +211,7 @@ TEST(pkg_req_get_pkg_2_read) { pkg->arch_size, pkg->state, pkg->name, pkg->category, pkg->version, pkg->description, pkg->archive, pkg->arch_hash, pkg->dependencies_arr_size, pkg->dependencies_arr); + TEST_ASSERT(ret != 0, "Server returned nothing"); TEST_ASSERT_FMT(memcmp(ptr, ret, size) == 0, "Expected package is wrong %s", print_package(ptr, ret, size, r_n)); return TEST_SUCCESS;