test_etcp_router_unit: fix FAIL macro — bare return in non-void function

This commit is contained in:
Evgeny committed 2026-06-01 10:39:33 +03:00
1 parent 256409eaea
commit 23819f0c9f
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ static int test_total = 0, test_passed = 0, test_failed = 0;
} while(0)
#define PASS() do { puts("PASS"); test_passed++; } while(0)
#define FAIL(msg) do { printf("FAIL: %s\n", msg); test_failed++; return; } while(0)
#define FAIL(msg) do { printf("FAIL: %s\n", msg); test_failed++; return -1; } while(0)
// ======================== Tests ========================