DLR-SC / googletest_mpi

Googletest-mpi - Extension of the Google Test library to support MPI parallel tests
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

The _MPI macros should also work if not compiled with MPI #2

Open holke opened 3 years ago

holke commented 3 years ago

If we disable MPI support (with -DGTEST_HAS_MPI=0) then the new _MPI macros are not defined causing compiler errors in code using them. Instead, they should be defined to their non-mpi counterparts to make code using the _MPI macros behave like expected (as serial code) if compiled without MPI support.