From: Anoop Saldanha Date: Tue, 24 Apr 2012 16:51:02 +0000 (+0530) Subject: fix detection filter unittests to reflect recent fixes X-Git-Tag: suricata-1.3beta2~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8742e51fb0135f7cae0c12269c2af48a40d6c1e3;p=thirdparty%2Fsuricata.git fix detection filter unittests to reflect recent fixes --- diff --git a/src/detect-detection-filter.c b/src/detect-detection-filter.c index 6dd47bd535..e4aeed5264 100644 --- a/src/detect-detection-filter.c +++ b/src/detect-detection-filter.c @@ -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);