Fixup unittests that use buffers that simulate configuration files. They now include the YAML header.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent 4e1acf5fd2
commit eb67bb442e

@ -3055,6 +3055,9 @@ void SigTableRegisterTests(void) {
#include "flow-util.h"
static const char *dummy_conf_string =
"%YAML 1.1\n"
"---\n"
"\n"
"default-log-dir: /var/log/suricata\n"
"\n"
"logging:\n"

@ -3857,6 +3857,9 @@ end:
/* Dummy conf string to setup the OS policy for unit testing */
static const char *dummy_conf_string =
"%YAML 1.1\n"
"---\n"
"\n"
"default-log-dir: /var/log/eidps\n"
"\n"
"logging:\n"
@ -3877,6 +3880,9 @@ static const char *dummy_conf_string =
"\n";
/* Dummy conf string to setup the OS policy for unit testing */
static const char *dummy_conf_string1 =
"%YAML 1.1\n"
"---\n"
"\n"
"default-log-dir: /var/log/eidps\n"
"\n"
"logging:\n"

@ -91,6 +91,9 @@ char *SCRuleVarsGetConfVar(const char *conf_var_name,
/**********************************Unittests***********************************/
static const char *dummy_conf_string =
"%YAML 1.1\n"
"---\n"
"\n"
"default-log-dir: /var/log/suricata\n"
"\n"
"logging:\n"

Loading…
Cancel
Save