test_etcp_router_unit: fix FAIL macro — bare return in non-void function
This commit is contained in:
1 parent
256409eaea
commit
23819f0c9f
1 file changed
+1
-1
@@ -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 ========================
|
||||
|
||||
|
||||
Reference in new issue
Block a user