]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
counters: use some of the new macros in tests
authorJason Ish <ish@unx.ca>
Thu, 7 Apr 2016 16:57:27 +0000 (10:57 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 8 Apr 2016 10:28:09 +0000 (12:28 +0200)
src/counters.c

index c00b4fcf296fcc61f00b022111cabbfd2da46f44..add05fca7904b696eee0f5b1db08490a5a387185 100644 (file)
@@ -1384,7 +1384,7 @@ static int StatsTestCntArraySize07()
     StatsReleaseCounters(tv.perf_public_ctx.head);
     StatsReleasePrivateThreadContext(pca);
 
-    return result == 2;
+    PASS_IF(result == 2);
 }
 
 static int StatsTestUpdateCounter08()