Skip to content

Commit

Permalink
Fix Windows testing
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Feb 13, 2025
1 parent 25c9594 commit ecf7039
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5266,7 +5266,13 @@ void serial_iterator(std::string const &file)
constexpr Extent::value_type extent = 1000;
{
Series writeSeries(
file, Access::CREATE, R"({"rank_table": "posix_hostname"})");
file,
Access::CREATE
#ifndef _WIN32
,
R"({"rank_table": "posix_hostname"})"
#endif
);
auto iterations = writeSeries.writeIterations();
for (size_t i = 0; i < 10; ++i)
{
Expand Down Expand Up @@ -5297,12 +5303,18 @@ void serial_iterator(std::string const &file)
}
last_iteration_index = iteration.iterationIndex;
}
if (readSeries.iterationEncoding() == IterationEncoding::variableBased)
for (auto const &[rank, host] : readSeries.rankTable(true))
#ifndef _WIN32
if (readSeries.iterationEncoding() != IterationEncoding::fileBased)
{
auto rank_table = readSeries.rankTable(true);
for (auto const &[rank, host] : rank_table)
{
std::cout << "POST Rank '" << rank << "' written from host '"
<< host << "'\n";
}
REQUIRE(rank_table.size() == 1);
}
#endif
REQUIRE(last_iteration_index == 9);
REQUIRE(numberOfIterations == 10);
}
Expand Down

0 comments on commit ecf7039

Please sign in to comment.