From 1f109b0db29339b05e3199bae3fce7d42acfeb0c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 17 Feb 2021 15:50:45 -0500 Subject: [PATCH] update unittest for lammps_config_has_mpi() change --- unittest/c-library/test_library_config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unittest/c-library/test_library_config.cpp b/unittest/c-library/test_library_config.cpp index 8a3d08cb33..e5eb044d31 100644 --- a/unittest/c-library/test_library_config.cpp +++ b/unittest/c-library/test_library_config.cpp @@ -200,7 +200,10 @@ TEST(LAMMPSConfig, exceptions) TEST(LAMMPSConfig, mpi_support) { - EXPECT_EQ(lammps_config_has_mpi_support(), LAMMPS_HAS_MPI); + if (LAMMPS_HAS_MPI) + EXPECT_GT(lammps_config_has_mpi_support(), 0); + else + EXPECT_EQ(lammps_config_has_mpi_support(), 0); }; TEST(LAMMPSConfig, png_support)