Skip to content

Commit

Permalink
Sort output for test_iProbe.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJDavies2 committed Apr 29, 2024
1 parent 06e074c commit 9058a45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/mpi/eckit_test_mpi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* does it submit to any jurisdiction.
*/

#include <algorithm>
#include <fstream>
#include <numeric>

Expand Down Expand Up @@ -1000,6 +1001,8 @@ CASE("test_iProbe") {
--count;
}

std::sort(data.begin(), data.begin() + nproc);

for (int i = 0; i < nproc; i++) {
EXPECT(i == data[i]);
}
Expand Down

0 comments on commit 9058a45

Please sign in to comment.