]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Add missing UNITTESTS
authorEric Leblond <eric@regit.org>
Mon, 16 Dec 2013 10:38:33 +0000 (11:38 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 14:33:58 +0000 (15:33 +0100)
There is no need for test functions to be build in normal code.

src/util-rule-vars.c

index 283d8380922a92306613f15dd514e8ccbb0bfa7d..09d455392035d4e2b46dbbf483b24012e1d4fbcc 100644 (file)
@@ -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)
 {