Skip to content

Commit

Permalink
Refs #19429. Fix linux build.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Sep 12, 2023
1 parent 52c951d commit 29a2484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/unittest/xmlparser/XMLElementParserTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ TEST_F(XMLParserTests, getXMLPropertiesPolicy)
EXPECT_EQ(property_policy.binary_properties()[0].value(), std::vector<uint8_t>({0x01, 0x02, 0xCA, 0xFE}));
EXPECT_EQ(property_policy.binary_properties()[0].propagate(), false);

for (int i = 0; i < valid_parameters.size(); i++)
for (size_t i = 0; i < valid_parameters.size(); i++)
{
parameters = valid_parameters;
parameters[i] = wrong_parameters[i];
Expand Down Expand Up @@ -3913,7 +3913,7 @@ static void set_environment_variable(
#ifdef _WIN32
ASSERT_EQ(0, _putenv_s(env_var, value));
#else
ASSERT_EQ(0, setenv(env_var, value));
ASSERT_EQ(0, setenv(env_var, value, 1));
#endif // _WIN32
}

Expand Down
2 changes: 1 addition & 1 deletion test/unittest/xmlparser/XMLProfileParserTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class XMLProfileParserTests : public XMLProfileParserBasicTests, public testing:
#ifdef _WIN32
ASSERT_EQ(0, _putenv_s(value.first.c_str(), value.second.c_str()));
#else
ASSERT_EQ(0, setenv(value.first.c_str(), value.second.c_str()));
ASSERT_EQ(0, setenv(value.first.c_str(), value.second.c_str(), 1));
#endif // _WIN32
}
}
Expand Down

0 comments on commit 29a2484

Please sign in to comment.