Skip to content

Commit

Permalink
iox-#2066 Fix GCC 8 build
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Nov 16, 2023
1 parent f7ad923 commit 622f9b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion iceoryx_posh/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include <cpptoml.h>
#include <limits> // workaround for missing include in cpptoml.h

#if __cplusplus >= 201703L
#include <filesystem>
#endif

#include <fstream>
#include <string>
Expand All @@ -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");

Expand All @@ -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<uint64_t>(error)];
});
#endif
}

class TomlGatewayConfigParserSuiteTest : public TestWithParam<CheckCharactersValidity_t>
Expand Down

0 comments on commit 622f9b5

Please sign in to comment.