*/
void Unified2RegisterTests(void)
{
- PacketPoolInit();
#ifdef UNITTESTS
UtRegisterTest("Unified2Test01 -- Ipv4 test", Unified2Test01, 1);
UtRegisterTest("Unified2Test02 -- Ipv6 test", Unified2Test02, 1);
static int FlowMgrTest05 (void)
{
int result = 0;
- extern intmax_t max_pending_packets;
- max_pending_packets = 128;
- PacketPoolInit();
FlowInitConfig(FLOW_QUIET);
FlowConfig backup;
memcpy(&backup, &flow_config, sizeof(FlowConfig));
memcpy(&flow_config, &backup, sizeof(FlowConfig));
FlowShutdown();
- PacketPoolDestroy();
return result;
}
#endif /* UNITTESTS */
if (list_unittests) {
UtListTests(regex_arg);
} else {
+ /* global packet pool */
+ extern intmax_t max_pending_packets;
+ max_pending_packets = 128;
+ PacketPoolInit();
+
uint32_t failed = UtRunTests(regex_arg);
+ PacketPoolDestroy();
UtCleanup();
#ifdef __SC_CUDA_SUPPORT__
if (PatternMatchDefaultMatcher() == MPM_AC_CUDA)