Merge in SNORT/snort3 from ~RUCOMBS/snort3:mem_test to master
Squashed commit of the following:
commit
7d7cf735582105210f4d51918b0f83dfadec99cf
Author: Russ Combs <rucombs@cisco.com>
Date: Thu Jan 19 00:04:03 2023 -0500
memory: fix unit test build w/o reg test
epoch_check(nullptr);
}
+#endif
+#if defined(REG_TEST) || defined(UNIT_TEST)
void MemoryCap::test_main_check()
{
assert(in_main_thread());
// main thread - shutdown
static void update_pegs(PegCount*);
-#ifdef REG_TEST
+#if defined(REG_TEST) || defined(UNIT_TEST)
static void test_main_check();
#endif
};
THREAD_LOCAL const Trace* memory_trace = nullptr;
+void Periodic::register_handler(PeriodicHook, void*, uint16_t, uint32_t) { }
+
//--------------------------------------------------------------------------
// mocks
//--------------------------------------------------------------------------