Skip to content

Commit

Permalink
For now, adapt the append_mode test
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Feb 19, 2024
1 parent 9389ecd commit 19b68ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/ParallelIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1536,14 +1536,14 @@ void append_mode(
// time but as they go
Series read(filename, Access::READ_LINEAR, MPI_COMM_WORLD);
unsigned counter = 0;
uint64_t iterationOrder[] = {0, 1, 3, 2, 4, 10, 7, 11};
uint64_t iterationOrder[] = {0, 1, 3, 2, 4, 3, 10, 7, 1, 11};
for (auto iteration : read.readIterations())
{
REQUIRE(iteration.iterationIndex == iterationOrder[counter]);
verifyIteration(iteration);
++counter;
}
REQUIRE(counter == 8);
REQUIRE(counter == 10);
// listSeries will not see any iterations since they have already
// been read
helper::listSeries(read);
Expand Down Expand Up @@ -1649,15 +1649,15 @@ void append_mode(
// in variable-based encodings, iterations are not parsed ahead
// of time but as they go
unsigned counter = 0;
uint64_t iterationOrder[] = {0, 1, 3, 2, 4, 10, 7, 5};
uint64_t iterationOrder[] = {0, 1, 3, 2, 4, 3, 10, 7, 4, 5};
for (auto iteration : read.readIterations())
{
REQUIRE(
iteration.iterationIndex == iterationOrder[counter]);
verifyIteration(iteration);
++counter;
}
REQUIRE(counter == 8);
REQUIRE(counter == 10);
}
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7018,14 +7018,14 @@ void append_mode(
// time but as they go
Series read(filename, Access::READ_LINEAR);
unsigned counter = 0;
uint64_t iterationOrder[] = {0, 1, 3, 2, 4, 10, 7, 11};
uint64_t iterationOrder[] = {0, 1, 3, 2, 4, 3, 10, 7, 1, 11};
for (auto iteration : read.readIterations())
{
REQUIRE(iteration.iterationIndex == iterationOrder[counter]);
verifyIteration(iteration);
++counter;
}
REQUIRE(counter == 8);
REQUIRE(counter == 10);
// listSeries will not see any iterations since they have already
// been read
helper::listSeries(read);
Expand Down

0 comments on commit 19b68ee

Please sign in to comment.