refix failing unittest

remotes/origin/master-1.1.x
Anoop Saldanha 14 years ago committed by Victor Julien
parent 552e72e35e
commit 16884a0dea

@ -599,12 +599,14 @@ static int FlowPrune(FlowQueue *q, struct timeval *ts, int try_cnt)
continue; continue;
} }
#ifndef UNITTESTS #ifdef UNITTESTS
if (FlowForceReassemblyForFlowV2(f) == 1) { if (run_mode != RUNMODE_UNITTEST) {
Flow *prev_f = f; if (FlowForceReassemblyForFlowV2(f) == 1) {
f = f->lnext; Flow *prev_f = f;
SCMutexUnlock(&prev_f->m); f = f->lnext;
continue; SCMutexUnlock(&prev_f->m);
continue;
}
} }
#endif #endif

Loading…
Cancel
Save