Skip to content

Commit

Permalink
Fix file existence check in parallel tests (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel authored Aug 9, 2022
1 parent b05171d commit e08cf64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/ParallelIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,10 +1222,13 @@ doshuffle = "BLOSC_BITSHUFFLE"
write("../samples/jsonConfiguredBP4Parallel.bp", writeConfigBP4);
write("../samples/jsonConfiguredBP3Parallel.bp", writeConfigBP3);

MPI_Barrier(MPI_COMM_WORLD);

// BP3 engine writes files, BP4 writes directories
REQUIRE(openPMD::auxiliary::file_exists("../samples/jsonConfiguredBP3.bp"));
REQUIRE(openPMD::auxiliary::file_exists(
"../samples/jsonConfiguredBP3Parallel.bp"));
REQUIRE(openPMD::auxiliary::directory_exists(
"../samples/jsonConfiguredBP4.bp"));
"../samples/jsonConfiguredBP4Parallel.bp"));

std::string readConfigBP3 = R"END(
{
Expand Down

0 comments on commit e08cf64

Please sign in to comment.