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

This commit is contained in:
Evgeny committed 2026-06-18 22:11:25 +03:00
1 parent 73f707ef9b
commit 2bbdf8195f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ static int test_failed = 0;
static struct SC_MYKEYS s_keys, c_keys;
#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)
static int g_srv_recv_count = 0;
+1 -1
View File
@@ -15,7 +15,7 @@ static int test_failed = 0;
#define BASE_PORT 24567
#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)
struct recv_ctx { uint8_t *data; size_t len, cap; int count; };