Commit 34f8046
committed
fix(test): Synchronize ranks before cleanup in VTK writer test
- Add MPI_Barrier before cleanup to prevent race conditions
- Only rank 0 performs cleanup to avoid concurrent file deletion
- Fixes vtk_writer_parallel test failure where rank 1's file was
deleted by rank 0's cleanup before rank 1 could verify it
Root cause: Both ranks run test fixture destructor independently,
leading to concurrent cleanup. Rank 0 could delete all test_*.vti
files while rank 1 was still checking if its file exists, causing
the REQUIRE(fixture.file_exists(piece_filename)) assertion to fail.1 parent f6183f1 commit 34f8046
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
164 | 170 | | |
165 | 171 | | |
166 | 172 | | |
| |||
0 commit comments