mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Regression: Sets MODSECURITY env var during the tests execution
This commit is contained in:
parent
407b6c0f4b
commit
b736f0292d
2
CHANGES
2
CHANGES
@ -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.
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user