From b0b62fe1acd5ec91c5e24742fdd0a20103796a36 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 30 Aug 2022 12:32:22 -0400 Subject: [PATCH] fix death test --- unittest/commands/test_set_property.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittest/commands/test_set_property.cpp b/unittest/commands/test_set_property.cpp index 3675a1b18f..f482463060 100644 --- a/unittest/commands/test_set_property.cpp +++ b/unittest/commands/test_set_property.cpp @@ -358,10 +358,10 @@ TEST_F(SetTest, EffPackage) command("set atom 7* spin/electron 3"); command("set region left radius/electron 0.5"); command("set region right radius/electron 1.0"); - command("compute 1 all property/atom espin eradius"); + command("compute 2 all property/atom espin eradius"); END_HIDE_OUTPUT(); - auto compute = lmp->modify->get_compute_by_id("1"); + auto compute = lmp->modify->get_compute_by_id("2"); ASSERT_NE(compute, nullptr); compute->compute_peratom(); @@ -402,7 +402,7 @@ TEST_F(SetTest, EffPackage) TEST_FAILURE(".*ERROR on proc 0: Incorrect value for electron spin: 0.5.*", command("set atom * spin/electron 0.5");); TEST_FAILURE(".*ERROR on proc 0: Incorrect value for electron radius: -0.5.*", - command("set atom * radius/electron 0.5");); + command("set atom * radius/electron -0.5");); } } // namespace LAMMPS_NS