From 38e8d35387407896c56a628ce57ad35b771e14ba Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Tue, 24 Apr 2012 22:21:02 +0530 Subject: [PATCH 5/5] fix detection filter unittests to reflect recent fixes --- src/detect-detection-filter.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detect-detection-filter.c b/src/detect-detection-filter.c index 6dd47bd..e4aeed5 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); -- 1.7.1