skip test if atom style is missing

This commit is contained in:
Axel Kohlmeyer
2020-09-13 17:12:21 -04:00
parent 96a5585d65
commit 2438f38afc

View File

@ -74,6 +74,7 @@ TEST_F(LAMMPS_properties, natoms)
TEST_F(LAMMPS_properties, thermo) TEST_F(LAMMPS_properties, thermo)
{ {
if (!lammps_has_style(lmp,"atom","full")) GTEST_SKIP();
std::string input = INPUT_DIR + PATH_SEP + "in.fourmol"; std::string input = INPUT_DIR + PATH_SEP + "in.fourmol";
if (!verbose) ::testing::internal::CaptureStdout(); if (!verbose) ::testing::internal::CaptureStdout();
lammps_file(lmp, input.c_str()); lammps_file(lmp, input.c_str());