From: Eric Leblond Date: Mon, 16 Dec 2013 10:38:33 +0000 (+0100) Subject: Add missing UNITTESTS X-Git-Tag: suricata-2.0rc1~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5e390a0c624ef0d030abb9c594775b55d958e1d;p=thirdparty%2Fsuricata.git Add missing UNITTESTS There is no need for test functions to be build in normal code. --- 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) {