temporarily add atom style full to list of dependencies for Pair::single() test

This commit is contained in:
Axel Kohlmeyer
2020-06-29 19:36:06 -04:00
parent ce4ca0e640
commit f958cacbb4

View File

@ -1007,6 +1007,9 @@ TEST(PairStyle, single)
char **argv = (char **)args;
int argc = sizeof(args) / sizeof(char *);
// need to add this dependency
test_config.prerequisites.push_back(std::make_pair("atom", "full"));
// create a LAMMPS instance with standard settings to detect the number of atom types
if (!verbose) ::testing::internal::CaptureStdout();
LAMMPS *lmp = init_lammps(argc, argv, test_config);
@ -1018,8 +1021,10 @@ TEST(PairStyle, single)
for (auto prerequisite : test_config.prerequisites) {
std::cerr << prerequisite.first << "_style " << prerequisite.second << "\n";
}
test_config.prerequisites.pop_back();
GTEST_SKIP();
}
test_config.prerequisites.pop_back();
// gather some information and skip if unsupported
int ntypes = lmp->atom->ntypes;