File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 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)
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}
You can’t perform that action at this time.
0 commit comments