stream: update inline tests

Make sure inline tests set the stream_inline flag.
pull/1315/head
Victor Julien 11 years ago
parent e4cb8715de
commit 29d2483efb

@ -7715,6 +7715,7 @@ static int StreamTcpReassembleInlineTest01(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -7793,6 +7794,7 @@ static int StreamTcpReassembleInlineTest02(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -7904,6 +7906,7 @@ static int StreamTcpReassembleInlineTest03(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -8020,6 +8023,7 @@ static int StreamTcpReassembleInlineTest04(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -8133,6 +8137,7 @@ static int StreamTcpReassembleInlineTest05(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -8227,6 +8232,7 @@ static int StreamTcpReassembleInlineTest06(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -8356,6 +8362,7 @@ static int StreamTcpReassembleInlineTest07(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -8491,6 +8498,7 @@ static int StreamTcpReassembleInlineTest08(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -8624,6 +8632,7 @@ static int StreamTcpReassembleInlineTest09(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.client, 1);
FLOW_INITIALIZE(&f);
@ -8771,6 +8780,7 @@ static int StreamTcpReassembleInlineTest10(void)
memset(&tv, 0x00, sizeof(tv));
StreamTcpUTInit(&ra_ctx);
StreamTcpUTInitInline();
StreamTcpUTSetupSession(&ssn);
StreamTcpUTSetupStream(&ssn.server, 1);

@ -40,6 +40,8 @@
/* unittest helper functions */
extern int stream_inline;
void StreamTcpUTInit(TcpReassemblyThreadCtx **ra_ctx)
{
StreamTcpInitConfig(TRUE);
@ -50,6 +52,11 @@ void StreamTcpUTDeinit(TcpReassemblyThreadCtx *ra_ctx)
{
StreamTcpReassembleFreeThreadCtx(ra_ctx);
StreamTcpFreeConfig(TRUE);
stream_inline = 0;
}
void StreamTcpUTInitInline(void) {
stream_inline = 1;
}
void StreamTcpUTSetupSession(TcpSession *ssn)

@ -29,6 +29,8 @@
void StreamTcpUTInit(TcpReassemblyThreadCtx **);
void StreamTcpUTDeinit(TcpReassemblyThreadCtx *);
void StreamTcpUTInitInline(void);
void StreamTcpUTSetupSession(TcpSession *);
void StreamTcpUTClearSession(TcpSession *);

Loading…
Cancel
Save