From b605984f34aa3150afd4852bc9ff9f278a5a500a Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Fri, 27 May 2016 10:01:54 -0600 Subject: [PATCH] tests: setup unit test framework earlier Allows tests to be registered early, in support of moving outputs away from thread modules. --- src/runmode-unittests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runmode-unittests.c b/src/runmode-unittests.c index b5d22bd3b1..7326bcec3b 100644 --- a/src/runmode-unittests.c +++ b/src/runmode-unittests.c @@ -177,6 +177,8 @@ void RunUnittests(int list_unittests, char *regex_arg) SCReferenceConfInit(); SCClassConfInit(); + UtInitialize(); + RegisterAllModules(); DetectEngineRegisterAppInspectionEngines(); @@ -193,7 +195,6 @@ void RunUnittests(int list_unittests, char *regex_arg) AppLayerHtpEnableRequestBodyCallback(); AppLayerHtpNeedFileInspection(); - UtInitialize(); UTHRegisterTests(); StreamTcpRegisterTests(); SigRegisterTests();