From 2438f38afc50f9ee68bbae208b67b891ebbed069 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 13 Sep 2020 17:12:21 -0400 Subject: [PATCH] skip test if atom style is missing --- unittest/c-library/test_library_properties.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/unittest/c-library/test_library_properties.cpp b/unittest/c-library/test_library_properties.cpp index b279a11fdb..4d79b4feca 100644 --- a/unittest/c-library/test_library_properties.cpp +++ b/unittest/c-library/test_library_properties.cpp @@ -74,6 +74,7 @@ TEST_F(LAMMPS_properties, natoms) TEST_F(LAMMPS_properties, thermo) { + if (!lammps_has_style(lmp,"atom","full")) GTEST_SKIP(); std::string input = INPUT_DIR + PATH_SEP + "in.fourmol"; if (!verbose) ::testing::internal::CaptureStdout(); lammps_file(lmp, input.c_str());