http body: fix compression tests

pull/2140/head
Victor Julien 9 years ago
parent 5ec885e451
commit e76b334f8d

@ -3087,10 +3087,9 @@ static int DetectEngineHttpServerBodyTest20(void)
/* do detect */ /* do detect */
SigMatchSignatures(&th_v, de_ctx, det_ctx, p2); SigMatchSignatures(&th_v, de_ctx, det_ctx, p2);
if (PacketAlertCheck(p2, 1)) { #ifdef HAVE_HTP_CONFIG_SET_RESPONSE_DECOMPRESSION_LAYER_LIMIT
printf("sid 1 matched but shouldn't have"); FAIL_IF(!(PacketAlertCheck(p2, 1)));
goto end; #endif
}
result = 1; result = 1;
@ -3219,10 +3218,9 @@ static int DetectEngineHttpServerBodyTest21(void)
/* do detect */ /* do detect */
SigMatchSignatures(&th_v, de_ctx, det_ctx, p2); SigMatchSignatures(&th_v, de_ctx, det_ctx, p2);
if (PacketAlertCheck(p2, 1)) { #ifdef HAVE_HTP_CONFIG_SET_RESPONSE_DECOMPRESSION_LAYER_LIMIT
printf("sid 1 matched but shouldn't have"); FAIL_IF(!(PacketAlertCheck(p2, 1)));
goto end; #endif
}
result = 1; result = 1;
@ -3353,10 +3351,9 @@ static int DetectEngineHttpServerBodyTest22(void)
/* do detect */ /* do detect */
SigMatchSignatures(&th_v, de_ctx, det_ctx, p2); SigMatchSignatures(&th_v, de_ctx, det_ctx, p2);
if (!(PacketAlertCheck(p2, 1))) { #ifdef HAVE_HTP_CONFIG_SET_RESPONSE_DECOMPRESSION_LAYER_LIMIT
printf("sid 1 should have matched: "); FAIL_IF(!(PacketAlertCheck(p2, 1)));
goto end; #endif
}
result = 1; result = 1;

Loading…
Cancel
Save