must skip this test if USER-OMP is installed but OpenMP not enabled

This commit is contained in:
Axel Kohlmeyer 2021-05-03 15:30:48 -04:00
parent 8e2ecbc7ac
commit 69224ea682
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 0 deletions

View File

@ -325,6 +325,7 @@ TEST_F(LAMMPS_kokkos, InitMembers)
TEST(LAMMPS_init, OpenMP)
{
if (!LAMMPS::is_installed_pkg("USER-OMP")) GTEST_SKIP();
if (Info::get_openmp_info() == "OpenMP not enabled") GTEST_SKIP();
FILE *fp = fopen("in.lammps_empty", "w");
fputs("\n", fp);