From e5e390a0c624ef0d030abb9c594775b55d958e1d Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 16 Dec 2013 11:38:33 +0100 Subject: [PATCH] Add missing UNITTESTS There is no need for test functions to be build in normal code. --- src/util-rule-vars.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util-rule-vars.c b/src/util-rule-vars.c index 283d838092..09d4553920 100644 --- a/src/util-rule-vars.c +++ b/src/util-rule-vars.c @@ -99,6 +99,7 @@ char *SCRuleVarsGetConfVar(const char *conf_var_name, /**********************************Unittests***********************************/ +#ifdef UNITTESTS static const char *dummy_conf_string = "%YAML 1.1\n" @@ -421,6 +422,8 @@ end: return result; } +#endif /* UNITTESTS */ + void SCRuleVarsRegisterTests(void) {