Skip to content

Commit

Permalink
Use _putenv instead of unsetenv for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero committed Jun 8, 2021
1 parent 0987978 commit 4db4697
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/sdf_errors.cc
Original file line number Diff line number Diff line change
@@ -114,7 +114,11 @@ TEST_F(SDFLogsTest, DuplicateSiblingSameTypeDisabled16)
setenv("GAZEBO11_BACKWARDS_COMPAT_WARNINGS_ERRORS", "", 1);
Load("worlds/test_sdf16_err_sibling_same_type.world");
EXPECT_NO_ERR_IN_LOG();
#ifdef _WIN32
_putenv("GAZEBO11_BACKWARDS_COMPAT_WARNINGS_ERRORS");
#else
unsetenv("GAZEBO11_BACKWARDS_COMPAT_WARNINGS_ERRORS");
#endif
}

/////////////////////////////////////////////////

0 comments on commit 4db4697

Please sign in to comment.