From 19b68ee762876cba9c04cf596664030238c56343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Mon, 19 Feb 2024 10:33:31 +0100 Subject: [PATCH] For now, adapt the append_mode test --- test/ParallelIOTest.cpp | 8 ++++---- test/SerialIOTest.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/ParallelIOTest.cpp b/test/ParallelIOTest.cpp index 93efa9dcbc..a6b9822606 100644 --- a/test/ParallelIOTest.cpp +++ b/test/ParallelIOTest.cpp @@ -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); @@ -1649,7 +1649,7 @@ 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( @@ -1657,7 +1657,7 @@ void append_mode( verifyIteration(iteration); ++counter; } - REQUIRE(counter == 8); + REQUIRE(counter == 10); } break; default: diff --git a/test/SerialIOTest.cpp b/test/SerialIOTest.cpp index a7f32dc3f8..b30d5e71b6 100644 --- a/test/SerialIOTest.cpp +++ b/test/SerialIOTest.cpp @@ -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);