temporarily add atom style full to list of dependencies for Pair::single() test
This commit is contained in:
@ -1007,6 +1007,9 @@ TEST(PairStyle, single)
|
|||||||
char **argv = (char **)args;
|
char **argv = (char **)args;
|
||||||
int argc = sizeof(args) / sizeof(char *);
|
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
|
// create a LAMMPS instance with standard settings to detect the number of atom types
|
||||||
if (!verbose) ::testing::internal::CaptureStdout();
|
if (!verbose) ::testing::internal::CaptureStdout();
|
||||||
LAMMPS *lmp = init_lammps(argc, argv, test_config);
|
LAMMPS *lmp = init_lammps(argc, argv, test_config);
|
||||||
@ -1018,8 +1021,10 @@ TEST(PairStyle, single)
|
|||||||
for (auto prerequisite : test_config.prerequisites) {
|
for (auto prerequisite : test_config.prerequisites) {
|
||||||
std::cerr << prerequisite.first << "_style " << prerequisite.second << "\n";
|
std::cerr << prerequisite.first << "_style " << prerequisite.second << "\n";
|
||||||
}
|
}
|
||||||
|
test_config.prerequisites.pop_back();
|
||||||
GTEST_SKIP();
|
GTEST_SKIP();
|
||||||
}
|
}
|
||||||
|
test_config.prerequisites.pop_back();
|
||||||
|
|
||||||
// gather some information and skip if unsupported
|
// gather some information and skip if unsupported
|
||||||
int ntypes = lmp->atom->ntypes;
|
int ntypes = lmp->atom->ntypes;
|
||||||
|
|||||||
Reference in New Issue
Block a user