|
17 | 17 | #include <memory> |
18 | 18 | #include <string> |
19 | 19 |
|
20 | | -#include "rcutils/env.h" |
21 | | - |
22 | 20 | #include "rclcpp/logger.hpp" |
23 | 21 | #include "rclcpp/logging.hpp" |
24 | 22 | #include "rclcpp/node.hpp" |
@@ -159,22 +157,3 @@ TEST(TestLogger, set_level) { |
159 | 157 | rcutils_logging_set_output_handler(previous_output_handler); |
160 | 158 | EXPECT_EQ(RCUTILS_RET_OK, rcutils_logging_shutdown()); |
161 | 159 | } |
162 | | - |
163 | | -TEST(TestLogger, get_logging_directory) { |
164 | | - ASSERT_EQ(true, rcutils_set_env("HOME", "/fake_home_dir")); |
165 | | - ASSERT_EQ(true, rcutils_set_env("USERPROFILE", nullptr)); |
166 | | - ASSERT_EQ(true, rcutils_set_env("ROS_LOG_DIR", nullptr)); |
167 | | - ASSERT_EQ(true, rcutils_set_env("ROS_HOME", nullptr)); |
168 | | - |
169 | | - auto path = rclcpp::get_logging_directory(); |
170 | | - auto expected_path = rcpputils::fs::path{"/fake_home_dir"} / ".ros" / "log"; |
171 | | - |
172 | | - // TODO(ivanpauno): Add operator== to rcpputils::fs::path |
173 | | - auto it = path.cbegin(); |
174 | | - auto eit = expected_path.cbegin(); |
175 | | - for (; it != path.cend() && eit != expected_path.cend(); ++it, ++eit) { |
176 | | - EXPECT_EQ(*eit, *it); |
177 | | - } |
178 | | - EXPECT_EQ(it, path.cend()); |
179 | | - EXPECT_EQ(eit, expected_path.cend()); |
180 | | -} |
0 commit comments