diff --git a/tests/test_ll_queue.c b/tests/test_ll_queue.c index 882845ea..90abc86f 100644 --- a/tests/test_ll_queue.c +++ b/tests/test_ll_queue.c @@ -35,7 +35,7 @@ static struct { #define PASS() do { puts("PASS"); stats.passed++; } while(0) #define FAIL(msg) do { printf("FAIL: %s\n", msg); stats.failed++; } while(0) -#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return -1; } } while(0) +#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return; } } while(0) #define ASSERT_EQ(a,b,m) ASSERT((a)==(b),m) /* ------------------------------------------------------------------ */ diff --git a/tests/test_nat_engine.c b/tests/test_nat_engine.c index c60793c7..b51b342f 100644 --- a/tests/test_nat_engine.c +++ b/tests/test_nat_engine.c @@ -32,7 +32,7 @@ static struct { #define PASS() do { puts("PASS"); stats.passed++; } while(0) #define FAIL(msg) do { printf("FAIL: %s\n", msg); stats.failed++; } while(0) -#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return -1; } } while(0) +#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return; } } while(0) #define ASSERT_EQ(a,b,m) ASSERT((a)==(b),m) /* ================================================================ diff --git a/tests/test_nat_stress.c b/tests/test_nat_stress.c index 5d68bc02..d1ee3781 100644 --- a/tests/test_nat_stress.c +++ b/tests/test_nat_stress.c @@ -27,7 +27,7 @@ static struct { #define PASS() do { puts("PASS"); stats.passed++; } while(0) #define FAIL(msg) do { printf("FAIL: %s\n", msg); stats.failed++; } while(0) -#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return -1; } } while(0) +#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return; } } while(0) #define ASSERT_EQ(a,b,m) ASSERT((a)==(b),m) static double now_ms(void) { diff --git a/tests/test_route_lib.c b/tests/test_route_lib.c index f9c54cfb..e7602354 100644 --- a/tests/test_route_lib.c +++ b/tests/test_route_lib.c @@ -85,7 +85,7 @@ static struct { #define PASS() do { puts("PASS"); stats.passed++; } while(0) #define FAIL(msg) do { printf("FAIL: %s\n", msg); stats.failed++; } while(0) -#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return -1; } } while(0) +#define ASSERT(c, m) do { if (!(c)) { FAIL(m); return; } } while(0) #define ASSERT_EQ(a,b,m) ASSERT((a)==(b),m) #define ASSERT_PTR(p,m) ASSERT((p)!=NULL,m)