mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
Auxiliary classes StdObjMgt_ReadData::Object and StdObjMgt_WriteData::Object are renamed to "ObjectSentry" (to better reflect their nature); constructor is made explicit to ensure that such objects are always created intentionally. These objects are instantiated explicitly in the body of relevant functions, instead of implicit creation as temporary objects when function requires such object as argument. Variable used to get char from stream is nullified in several places in FSD_File and other classes, to avoid possible usage of uninitialized memory in case if stream is bad.
17 lines
604 B
Plaintext
17 lines
604 B
Plaintext
puts "# ======================================================================"
|
|
puts "# 0029355: OCCT 6.9.1 persistence restored in OCCT 7.2.0 not working"
|
|
puts "# ======================================================================"
|
|
|
|
pload OCAF MODELING
|
|
|
|
puts ""
|
|
puts "# Check reading of shape from FSD archive"
|
|
fsdread [locate_data_file bug29355.fsd] a
|
|
checkshape a
|
|
checknbshapes a -face 14 -solid 0 -edge 39 -vertex 26
|
|
|
|
puts ""
|
|
puts "# Check that reading fails with expected message on truncated file"
|
|
puts "REQUIRED 29355 ALL: Error : 6"
|
|
catch {fsdread [locate_data_file bug29355_truncated.fsd] a}
|