update master field tests

This commit is contained in:
Sinisa Veseli
2024-04-30 13:09:59 -05:00
parent 94b48e4893
commit cd7d8735af

View File

@ -289,6 +289,7 @@ static void testMasterField(PVRecordPtr const& pvRecord)
cout << "Master PV structure from copy" << endl << *pvMasterField << endl; cout << "Master PV structure from copy" << endl << *pvMasterField << endl;
cout << "Master PV structure from copy offset " << pvMasterField->getFieldOffset() << endl; cout << "Master PV structure from copy offset " << pvMasterField->getFieldOffset() << endl;
} }
testOk1(pvCopy->isMasterFieldRequested());
testOk1(pvMasterField->getNumberFields() == pvStructureRecord->getNumberFields()); testOk1(pvMasterField->getNumberFields() == pvStructureRecord->getNumberFields());
testOk1(pvMasterField->getFieldOffset() == 0); testOk1(pvMasterField->getFieldOffset() == 0);
PVStructurePtr pvStructureCopy = pvCopy->createPVStructure(); PVStructurePtr pvStructureCopy = pvCopy->createPVStructure();
@ -431,7 +432,7 @@ static void masterFieldTest()
MAIN(testPVCopy) MAIN(testPVCopy)
{ {
testPlan(70); testPlan(71);
scalarTest(); scalarTest();
arrayTest(); arrayTest();
powerSupplyTest(); powerSupplyTest();