From e77f2c91d7ca97e1fed21b472719ff3a85eba9a9 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Thu, 6 Nov 2014 13:03:59 +0100 Subject: [PATCH] fixed undeterministic serialization test on clang --- testApp/misc/testSerialization.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testApp/misc/testSerialization.cpp b/testApp/misc/testSerialization.cpp index e88dbe9..8e619aa 100644 --- a/testApp/misc/testSerialization.cpp +++ b/testApp/misc/testSerialization.cpp @@ -716,7 +716,9 @@ void testArraySizeType() { serializationFieldTest(s); PVStructurePtr pvs = getPVDataCreate()->createPVStructure(s); - pvs->getSubField("fixedArray")->setLength(10); + PVDoubleArray::shared_pointer pvDA = pvs->getSubField("fixedArray"); + PVDoubleArray::svector vec(10, 42); + pvDA->replace(freeze(vec)); serializationTest(pvs); }