Regression: Sets MODSECURITY env var during the tests execution

This commit is contained in:
Felipe Zimmerle
2018-11-29 15:18:39 -03:00
parent 407b6c0f4b
commit b736f0292d
2 changed files with 7 additions and 0 deletions

View File

@@ -424,6 +424,11 @@ after_debug_log:
int main(int argc, char **argv) {
ModSecurityTest<RegressionTest> test;
std::string ver(MODSECURITY_VERSION);
std::string envvar("MODSECURITY=ModSecurity " + ver + " regression tests");
putenv(strdup(envvar.c_str()));
#ifndef NO_LOGS
int test_number = 0;
#endif