From 622f9b596e37cd0a97bb6de496354c3a0b4c5f98 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 16 Nov 2023 23:26:22 +0100 Subject: [PATCH] iox-#2066 Fix GCC 8 build --- iceoryx_posh/test/CMakeLists.txt | 2 +- .../moduletests/test_popo_toml_gateway_config_parser.cpp | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/iceoryx_posh/test/CMakeLists.txt b/iceoryx_posh/test/CMakeLists.txt index f79e324c00..7e936913bb 100644 --- a/iceoryx_posh/test/CMakeLists.txt +++ b/iceoryx_posh/test/CMakeLists.txt @@ -57,7 +57,7 @@ iox_add_executable( TARGET ${PROJECT_PREFIX}_moduletests INCLUDE_DIRECTORIES . ${CMAKE_BINARY_DIR}/generated LIBS ${TEST_LINK_LIBS} - LIBS_LINUX dl + LIBS_LINUX dl stdc++fs STACK_SIZE ${ICEORYX_POSH_TEST_STACK_SIZE} FILES ${MODULETESTS_SRC} diff --git a/iceoryx_posh/test/moduletests/test_popo_toml_gateway_config_parser.cpp b/iceoryx_posh/test/moduletests/test_popo_toml_gateway_config_parser.cpp index 7fd706fcbe..df71ee2a3c 100644 --- a/iceoryx_posh/test/moduletests/test_popo_toml_gateway_config_parser.cpp +++ b/iceoryx_posh/test/moduletests/test_popo_toml_gateway_config_parser.cpp @@ -26,9 +26,7 @@ #include #include // workaround for missing include in cpptoml.h -#if __cplusplus >= 201703L #include -#endif #include #include @@ -54,9 +52,6 @@ TEST_F(TomlGatewayConfigParserTest, ParsingFileIsSuccessful) { ::testing::Test::RecordProperty("TEST_ID", "78b50f73-f17f-45e2-a091-aaad6c536c3a"); -#if __cplusplus < 201703L - GTEST_SKIP() << "The test uses std::filesystem which is only available with C++17"; -#else auto tempFilePath = std::filesystem::temp_directory_path(); tempFilePath.append("test_gateway_config.toml"); @@ -77,7 +72,6 @@ TEST_F(TomlGatewayConfigParserTest, ParsingFileIsSuccessful) GTEST_FAIL() << "Expected a config but got error: " << iox::config::TOML_GATEWAY_CONFIG_FILE_PARSE_ERROR_STRINGS[static_cast(error)]; }); -#endif } class TomlGatewayConfigParserSuiteTest : public TestWithParam