Skip to content

Commit b9ef1fe

Browse files
authored
Use std compliant non-method std::filesystem::exists function (#1502)
Signed-off-by: Josh Langsfeld <[email protected]>
1 parent adebda5 commit b9ef1fe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rclcpp_components/test/test_component_manager.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ TEST_F(TestComponentManager, get_component_resources_valid)
5151
EXPECT_EQ("test_rclcpp_components::TestComponentBar", resources[1].first);
5252
EXPECT_EQ("test_rclcpp_components::TestComponentNoNode", resources[2].first);
5353

54-
EXPECT_TRUE(rcpputils::fs::path(resources[0].second).exists());
55-
EXPECT_TRUE(rcpputils::fs::path(resources[1].second).exists());
56-
EXPECT_TRUE(rcpputils::fs::path(resources[2].second).exists());
54+
namespace fs = rcpputils::fs;
55+
EXPECT_TRUE(fs::exists(fs::path(resources[0].second)));
56+
EXPECT_TRUE(fs::exists(fs::path(resources[1].second)));
57+
EXPECT_TRUE(fs::exists(fs::path(resources[2].second)));
5758
}
5859

5960
TEST_F(TestComponentManager, create_component_factory_valid)

0 commit comments

Comments
 (0)