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:
parent
0aa3eac4d4
commit
5dc59d33df
@ -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 );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user