We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1ec2e1 + 2b63952 commit 0bdc5deCopy full SHA for 0bdc5de
test/utils/utils_log.cpp
@@ -63,6 +63,7 @@ void helper_log_init(const char *var) {
63
fopen_count = 0;
64
fput_count = 0;
65
util_log_init();
66
+ env_variable = NULL;
67
EXPECT_EQ(fopen_count, expect_fopen_count);
68
EXPECT_EQ(fput_count, expect_fput_count);
69
}
@@ -97,7 +98,6 @@ TEST_F(test, parseEnv_errors) {
97
98
expected_message = "[ERROR UMF] Cannot open output file - path too long\n";
99
std::string test_env = "output:file," + std::string(300, 'x');
100
helper_log_init(test_env.c_str());
- env_variable = NULL; // reset env_variable as test_env string is freed.
101
102
103
TEST_F(test, parseEnv) {
0 commit comments