fixed undeterministic serialization test on clang

This commit is contained in:
Matej Sekoranja
2014-11-06 13:03:59 +01:00
parent 82b0d5ce5f
commit e77f2c91d7

View File

@@ -716,7 +716,9 @@ void testArraySizeType() {
serializationFieldTest(s);
PVStructurePtr pvs = getPVDataCreate()->createPVStructure(s);
pvs->getSubField<PVArray>("fixedArray")->setLength(10);
PVDoubleArray::shared_pointer pvDA = pvs->getSubField<PVDoubleArray>("fixedArray");
PVDoubleArray::svector vec(10, 42);
pvDA->replace(freeze(vec));
serializationTest(pvs);
}