mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-02 01:22:16 +00:00
fix(unit_test): new macro for env var setting
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
This commit is contained in:
parent
1b8525bf80
commit
115729a86a
@ -18,6 +18,12 @@ limitations under the License.
|
|||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <falco/configuration.h>
|
#include <falco/configuration.h>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define SET_ENV_VAR(env_var_name, env_var_value) _putenv_s(env_var_name, env_var_value)
|
||||||
|
#else
|
||||||
|
#define SET_ENV_VAR(env_var_name, env_var_value) setenv(env_var_name, env_var_value, 1)
|
||||||
|
#endif
|
||||||
|
|
||||||
static std::string sample_yaml =
|
static std::string sample_yaml =
|
||||||
"base_value:\n"
|
"base_value:\n"
|
||||||
" id: 1\n"
|
" id: 1\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user