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

0024565: MgtBRep persistence bug

Fix of the persistence bug (exception with message "Persistant CurveRep is Null").
Creating new draw command for testing CR24565
Revert license header corruption
Correction for new draw command OCC24565
Test case for issue CR24565
This commit is contained in:
szy
2014-03-27 16:48:46 +04:00
committed by bugmaster
parent 505abfb89f
commit 3497d55234
4 changed files with 263 additions and 10 deletions

25
tests/bugs/caf/bug24565 Normal file
View File

@@ -0,0 +1,25 @@
puts "=========="
puts "OCC24565"
puts "=========="
puts ""
###################################################
# MgtBRep persistence bug
###################################################
pload QAcommands
set igs_file [locate_data_file bug24565_N60E.igs]
set output_file ${imagedir}/bug24565_output.stor
catch { file delete ${output_file} }
dlog reset
dlog on
OCC24565 ${igs_file} ${output_file}
set info [dlog get]
if { [regexp "Exception" ${info} ] != 1 } {
puts "OK : persistence is good"
} else {
puts "Error : persistence is bad"
}