1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0024852: Crash on storage of an Ocaf document in XML file format

Blanks are removed.
A check is implemented to correct a GUID in case of presence of the blanks.

Test case for issues CR24852
This commit is contained in:
vro
2014-04-17 15:56:55 +04:00
committed by abv
parent 1d1a589b2f
commit e58306b1b7
4 changed files with 39 additions and 4 deletions

18
tests/bugs/caf/bug24852 Executable file
View File

@@ -0,0 +1,18 @@
puts "=========="
puts "OCC24852"
puts "=========="
puts ""
########################################################
# Crash on storage of an Ocaf document in XML file format
########################################################
NewDocument D XmlOcaf
set File ${imagedir}/bug24852_test.xml
if { [catch {set res [SaveAs D ${File}]}] != 0 } {
puts "Error : Crash on storage of an Ocaf document in XML file format"
} else {
puts "OK : Storage of an Ocaf document in XML file format is good"
file delete ${File}
}