network

low level network subjects
Log | Files | Refs | Submodules | README | git clone https://git.ne02ptzero.me/git/network

commit 0217a980ff70001d5a6301ebd95c3681d1ce8272
parent b4ec436ef94fe34bfb2510da4beee4c74eeac81d
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 20 Mar 2017 17:59:58 +0100

Removed lib submodule

Diffstat:
D.gitmodules | 3---
Dlib | 1-
Msrc/client_test.c | 5++---
3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "lib"] - path = lib - url = https://github.com/Morphux/lib.git diff --git a/lib b/lib @@ -1 +0,0 @@ -Subproject commit 16f767cab835a92dcbfdaf9f465d79aa5c38efec diff --git a/src/client_test.c b/src/client_test.c @@ -44,7 +44,6 @@ TEST(pkg_auth_1_read) { ret = malloc(2048); READ_TIMEOUT(sockfd, ret, 2048, 1, r_n); - TEST_ASSERT_FMT(r_n == size, "Package returned size is wrong (%zu - %zu) %s", r_n, size, print_package(expect, ret, size, r_n)); TEST_ASSERT_FMT(memcmp(ret, expect, size) == 0, "Expected package is wrong %s", print_package(expect, ret, size, r_n)); pkg = read_pkg(ret); @@ -101,8 +100,8 @@ TEST(pkg_req_get_pkg_1_read) { ret = malloc(2048); READ_TIMEOUT(sockfd, ret, 2048, 1, r_n); - TEST_ASSERT(r_n == size, "Package returned size is wrong"); - TEST_ASSERT(memcmp(ret, expect, size) == 0, "Expected package is wrong"); + TEST_ASSERT_FMT(memcmp(ret, expect, size) == 0, + "Expected package is wrong %s", print_package(expect, ret, size, r_n)); pkg = read_pkg(ret); TEST_ASSERT(pkg, "Can't read package"); TEST_ASSERT(pkg->type == PKG_TYPE_ERROR, "Package type is wrong");