]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fix detection filter unittests to reflect recent fixes
authorAnoop Saldanha <poonaatsoc@gmail.com>
Tue, 24 Apr 2012 16:51:02 +0000 (22:21 +0530)
committerVictor Julien <victor@inliniac.net>
Wed, 25 Apr 2012 10:07:47 +0000 (12:07 +0200)
src/detect-detection-filter.c

index 6dd47bd535396f6f14a9717a8549a6c2ef9723e8..e4aeed52641e2fa76d84a2fef2475ec7c005aef3 100644 (file)
@@ -444,7 +444,7 @@ static int DetectDetectionFilterTestSig1(void) {
     SigMatchSignatures(&th_v, de_ctx, det_ctx, p);
     alerts += PacketAlertCheck(p, 1);
 
-    if(alerts == 5)
+    if(alerts == 4)
         result = 1;
 
     SigGroupCleanup(de_ctx);
@@ -522,7 +522,7 @@ static int DetectDetectionFilterTestSig2(void) {
     SigMatchSignatures(&th_v, de_ctx, det_ctx, p);
     alerts += PacketAlertCheck(p, 10);
 
-    if (alerts == 1)
+    if (alerts == 0)
         result = 1;
 
     SigGroupCleanup(de_ctx);