add exception for single test for colloid pair style

This commit is contained in:
Axel Kohlmeyer
2020-08-03 16:07:32 -04:00
parent 8d406403bb
commit 7ed748118e

View File

@ -1101,9 +1101,12 @@ TEST(PairStyle, single)
// The single function in EAM is different from what we assume
// here, therefore we have to skip testing those pair styles.
if ((test_config.pair_style.substr(0, 3) == "eam") ||
// Pair style colloid is also not compatible with this single tester
if ((test_config.pair_style.substr(0, 7) == "colloid") ||
(test_config.pair_style.substr(0, 3) == "eam") ||
((test_config.pair_style.substr(0, 6) == "hybrid") &&
(test_config.pair_style.find("eam") != std::string::npos))) {
(test_config.pair_style.find("eam") != std::string::npos))
) {
if (!verbose) ::testing::internal::CaptureStdout();
cleanup_lammps(lmp, test_config);
if (!verbose) ::testing::internal::GetCapturedStdout();