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
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,8 @@
v3.0.4 - YYYY-MMM-DD (to be released) v3.0.4 - YYYY-MMM-DD (to be released)
------------------------------------- -------------------------------------
- Regression: Sets MODSECURITY env var during the tests execution
[@zimmerle]
- Fix setenv action to strdup key=variable - Fix setenv action to strdup key=variable
[@zimmerle] [@zimmerle]
- Allow 0 length JSON requests. - Allow 0 length JSON requests.

View File

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