Browse Source

fix: TASSERT return value in test_etcp_stcp.c and test_stcp_link.c

feature/x25519-migration
Evgeny 4 months ago
parent
commit
2bbdf8195f
  1. 2
      tests/test_etcp_stcp.c
  2. 2
      tests/test_stcp_link.c

2
tests/test_etcp_stcp.c

@ -18,7 +18,7 @@ static int test_failed = 0;
static struct SC_MYKEYS s_keys, c_keys; static struct SC_MYKEYS s_keys, c_keys;
#define TASSERT(cond) do { \ #define TASSERT(cond) do { \
if (!(cond)) { DEBUG_ERROR(DEBUG_CATEGORY_GENERAL, " FAIL: %s", #cond); test_failed = 1; return; } \ if (!(cond)) { DEBUG_ERROR(DEBUG_CATEGORY_GENERAL, " FAIL: %s", #cond); test_failed = 1; return test_failed; } \
} while(0) } while(0)
static int g_srv_recv_count = 0; static int g_srv_recv_count = 0;

2
tests/test_stcp_link.c

@ -15,7 +15,7 @@ static int test_failed = 0;
#define BASE_PORT 24567 #define BASE_PORT 24567
#define TASSERT(cond) do { \ #define TASSERT(cond) do { \
if (!(cond)) { DEBUG_ERROR(DEBUG_CATEGORY_GENERAL, " FAIL: %s", #cond); test_failed = 1; return; } \ if (!(cond)) { DEBUG_ERROR(DEBUG_CATEGORY_GENERAL, " FAIL: %s", #cond); test_failed = 1; return test_failed; } \
} while(0) } while(0)
struct recv_ctx { uint8_t *data; size_t len, cap; int count; }; struct recv_ctx { uint8_t *data; size_t len, cap; int count; };

Loading…
Cancel
Save