Skip to content

Commit e3559c5

Browse files
committed
Fix Windows testing
1 parent 688ffa9 commit e3559c5

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Diff for: test/SerialIOTest.cpp

+15-3
Original file line numberDiff line numberDiff line change
@@ -5266,7 +5266,13 @@ void serial_iterator(std::string const &file)
52665266
constexpr Extent::value_type extent = 1000;
52675267
{
52685268
Series writeSeries(
5269-
file, Access::CREATE, R"({"rank_table": "posix_hostname"})");
5269+
file,
5270+
Access::CREATE
5271+
#ifndef _WIN32
5272+
,
5273+
R"({"rank_table": "posix_hostname"})"
5274+
#endif
5275+
);
52705276
auto iterations = writeSeries.writeIterations();
52715277
for (size_t i = 0; i < 10; ++i)
52725278
{
@@ -5297,12 +5303,18 @@ void serial_iterator(std::string const &file)
52975303
}
52985304
last_iteration_index = iteration.iterationIndex;
52995305
}
5300-
if (readSeries.iterationEncoding() == IterationEncoding::variableBased)
5301-
for (auto const &[rank, host] : readSeries.rankTable(true))
5306+
#ifndef _WIN32
5307+
if (readSeries.iterationEncoding() != IterationEncoding::fileBased)
5308+
{
5309+
auto rank_table = readSeries.rankTable(true);
5310+
for (auto const &[rank, host] : rank_table)
53025311
{
53035312
std::cout << "POST Rank '" << rank << "' written from host '"
53045313
<< host << "'\n";
53055314
}
5315+
REQUIRE(rank_table.size() == 1);
5316+
}
5317+
#endif
53065318
REQUIRE(last_iteration_index == 9);
53075319
REQUIRE(numberOfIterations == 10);
53085320
}

0 commit comments

Comments
 (0)