Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Mar 4, 2022
1 parent 1cba129 commit e83b4ff
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3929,6 +3929,14 @@ TEST_CASE("git_adios2_early_chunk_query", "[serial][adios2]")
R"({"backend": "adios2"})");
}

/*
* Require Gnu compiler 11 or younger because this test needs the
* <filesystem> header.
*/
#if __GNUC__ >= 11 && \
ADIOS2_VERSION_MAJOR * 1000000000 + ADIOS2_VERSION_MINOR * 100000000 + \
ADIOS2_VERSION_PATCH * 1000000 + ADIOS2_VERSION_TWEAK >= \
2701001223
void adios2_bp5_flush(std::string const &cfg, bool flushDuringStep)
{
constexpr size_t size = 1024 * 1024 * 1024;
Expand Down Expand Up @@ -4010,14 +4018,6 @@ void adios2_bp5_flush(std::string const &cfg, bool flushDuringStep)

TEST_CASE("adios2_bp5_flush", "[serial][adios2]")
{
/*
* Require Gnu compiler 11 or younger because this test needs the
* <filesystem> header.
*/
#if __GNUC__ >= 11 && \
ADIOS2_VERSION_MAJOR * 1000000000 + ADIOS2_VERSION_MINOR * 100000000 + \
ADIOS2_VERSION_PATCH * 1000000 + ADIOS2_VERSION_TWEAK >= \
2701001223
std::string cfg1 = R"(
[adios2]
Expand Down Expand Up @@ -4071,9 +4071,8 @@ BufferChunkSize = 2147483646 # 2^31 - 2
)";

adios2_bp5_flush(cfg3, /* flushDuringStep = */ true);

#endif
}
#endif

TEST_CASE("serial_adios2_backend_config", "[serial][adios2]")
{
Expand Down

0 comments on commit e83b4ff

Please sign in to comment.