1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 20:27:22 +01:00

see #2209 do not add the same object to two different parents

This commit is contained in:
Vadim Kurland 2011-03-12 20:23:26 -08:00
parent 0aa3eac4d4
commit 5dc59d33df

View File

@ -368,7 +368,6 @@ void interfacePropertiesTest::isEligibleForCluster()
Interface *parent1 = Interface::cast(db->create(Interface::TYPENAME));
Interface *iface1 = Interface::cast(db->create(Interface::TYPENAME));
db->add(parent1);
db->add(iface1);
parent1->add(iface1);
iface1->getOptionsObject()->setStr("type", "ethernet");
@ -402,7 +401,6 @@ void interfacePropertiesTest::isEligibleForCluster()
Interface *subface = Interface::cast(db->create(Interface::TYPENAME));
subface->setName("iface");
fw->add(iface);
fw->add(subface);
iface->getOptionsObject()->setStr("type", "bonding");
iface->add(subface);
CPPUNIT_ASSERT ( interfaceProperties().isEligibleForCluster(subface) == false );