File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -5266,7 +5266,13 @@ void serial_iterator(std::string const &file)
5266
5266
constexpr Extent::value_type extent = 1000 ;
5267
5267
{
5268
5268
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
+ );
5270
5276
auto iterations = writeSeries.writeIterations ();
5271
5277
for (size_t i = 0 ; i < 10 ; ++i)
5272
5278
{
@@ -5297,12 +5303,18 @@ void serial_iterator(std::string const &file)
5297
5303
}
5298
5304
last_iteration_index = iteration.iterationIndex ;
5299
5305
}
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)
5302
5311
{
5303
5312
std::cout << " POST Rank '" << rank << " ' written from host '"
5304
5313
<< host << " '\n " ;
5305
5314
}
5315
+ REQUIRE (rank_table.size () == 1 );
5316
+ }
5317
+ #endif
5306
5318
REQUIRE (last_iteration_index == 9 );
5307
5319
REQUIRE (numberOfIterations == 10 );
5308
5320
}
You can’t perform that action at this time.
0 commit comments