Skip to content

Commit

Permalink
Refs #22627. Fix build after #5593.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Feb 25, 2025
1 parent b3401c8 commit 25548a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittest/dds/participant/ParticipantTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,9 +1090,9 @@ void set_easy_mode_environment_variable(
)
{
#ifdef _WIN32
ASSERT_EQ(0, _putenv_s(rtps::EASY_MODE_URI, ip.c_str()));
ASSERT_EQ(0, _putenv_s(rtps::ROS2_EASY_MODE_URI, ip.c_str()));
#else
ASSERT_EQ(0, setenv(rtps::EASY_MODE_URI, ip.c_str(), 1));
ASSERT_EQ(0, setenv(rtps::ROS2_EASY_MODE_URI, ip.c_str(), 1));
#endif // _WIN32
}

Expand Down

0 comments on commit 25548a8

Please sign in to comment.