From 3993f53946ea89ac11844f90a8d94037994d8136 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 10 Aug 2020 15:46:28 -0400 Subject: [PATCH] must skip DeathTests if no data file loaded --- unittest/commands/test_reset_ids.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittest/commands/test_reset_ids.cpp b/unittest/commands/test_reset_ids.cpp index 4538aaca3f..bdd19f2bca 100644 --- a/unittest/commands/test_reset_ids.cpp +++ b/unittest/commands/test_reset_ids.cpp @@ -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"););