diff --git a/test/integration/log_system.cc b/test/integration/log_system.cc index 935ab8830b..a9bc0ea255 100644 --- a/test/integration/log_system.cc +++ b/test/integration/log_system.cc @@ -339,7 +339,7 @@ TEST_F(LogSystemTest, LogDefaults) std::string homeOrig; common::env(IGN_HOMEDIR, homeOrig); std::string homeFake = common::joinPaths(this->logsDir, "default"); - EXPECT_EQ(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str()), 0); + EXPECT_TRUE(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str())); // Test case 1: // No path specified, on both command line and SDF. This does not go through @@ -423,7 +423,7 @@ TEST_F(LogSystemTest, LogDefaults) #endif // Revert environment variable after test is done - EXPECT_EQ(ignition::common::setenv(IGN_HOMEDIR, homeOrig.c_str()), 0); + EXPECT_TRUE(ignition::common::setenv(IGN_HOMEDIR, homeOrig.c_str())); } ///////////////////////////////////////////////// @@ -479,7 +479,7 @@ TEST_F(LogSystemTest, LogPaths) std::string homeOrig; common::env(IGN_HOMEDIR, homeOrig); std::string homeFake = common::joinPaths(this->logsDir, "default"); - EXPECT_EQ(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str()), 0); + EXPECT_TRUE(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str())); // Store number of files before running auto logPath = common::joinPaths(homeFake.c_str(), ".ignition", "gazebo", @@ -692,7 +692,7 @@ TEST_F(LogSystemTest, LogPaths) #endif // Revert environment variable after test is done - EXPECT_EQ(ignition::common::setenv(IGN_HOMEDIR, homeOrig.c_str()), 0); + EXPECT_TRUE(ignition::common::setenv(IGN_HOMEDIR, homeOrig.c_str())); this->RemoveLogsDir(); } @@ -1569,7 +1569,7 @@ TEST_F(LogSystemTest, LogResources) std::string homeOrig; common::env(IGN_HOMEDIR, homeOrig); std::string homeFake = common::joinPaths(this->logsDir, "default"); - EXPECT_EQ(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str()), 0); + EXPECT_TRUE(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str())); const std::string recordPath = this->logDir; std::string statePath = common::joinPaths(recordPath, "state.tlog"); @@ -1634,7 +1634,7 @@ TEST_F(LogSystemTest, LogResources) "models", "x2 config 1"))); // Revert environment variable after test is done - EXPECT_EQ(ignition::common::setenv(IGN_HOMEDIR, homeOrig.c_str()), 0); + EXPECT_TRUE(ignition::common::setenv(IGN_HOMEDIR, homeOrig.c_str())); // Remove artifacts this->RemoveLogsDir(); @@ -1656,7 +1656,7 @@ TEST_F(LogSystemTest, LogTopics) std::string homeOrig; common::env(IGN_HOMEDIR, homeOrig); std::string homeFake = common::joinPaths(this->logsDir, "default"); - EXPECT_EQ(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str()), 0); + EXPECT_TRUE(ignition::common::setenv(IGN_HOMEDIR, homeFake.c_str())); const std::string recordPath = this->logDir; std::string statePath = common::joinPaths(recordPath, "state.tlog");