must skip DeathTests if no data file loaded

This commit is contained in:
Axel Kohlmeyer 2020-08-10 15:46:28 -04:00
parent 67af8c000e
commit 3993f53946
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 0 deletions

View File

@ -660,6 +660,8 @@ TEST_F(ResetIDsTest, TopologyData)
TEST_F(ResetIDsTest, DeathTests)
{
if (lmp->atom->natoms == 0) GTEST_SKIP();
TEST_FAILURE(".*ERROR: Illegal reset_mol_ids command.*", lmp->input->one("reset_mol_ids"););
TEST_FAILURE(".*ERROR: Illegal reset_mol_ids command.*",
lmp->input->one("reset_mol_ids all offset 1 1"););