Skip to content

Commit b736f02

Browse files
author
Felipe Zimmerle
committed
Regression: Sets MODSECURITY env var during the tests execution
1 parent 407b6c0 commit b736f02

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.0.4 - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Regression: Sets MODSECURITY env var during the tests execution
5+
[@zimmerle]
46
- Fix setenv action to strdup key=variable
57
[@zimmerle]
68
- Allow 0 length JSON requests.

test/regression/regression.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ void perform_unit_test(ModSecurityTest<RegressionTest> *test,
424424

425425
int main(int argc, char **argv) {
426426
ModSecurityTest<RegressionTest> test;
427+
428+
std::string ver(MODSECURITY_VERSION);
429+
std::string envvar("MODSECURITY=ModSecurity " + ver + " regression tests");
430+
431+
putenv(strdup(envvar.c_str()));
427432
#ifndef NO_LOGS
428433
int test_number = 0;
429434
#endif

0 commit comments

Comments
 (0)