diff --git a/tests/test_etcp_stcp.c b/tests/test_etcp_stcp.c index 0708e816..d96581b6 100644 --- a/tests/test_etcp_stcp.c +++ b/tests/test_etcp_stcp.c @@ -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; diff --git a/tests/test_stcp_link.c b/tests/test_stcp_link.c index 25aa086d..c9ff93e8 100644 --- a/tests/test_stcp_link.c +++ b/tests/test_stcp_link.c @@ -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; };