1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/caf/bug23306
kgv 30fa5f6713 0032705: Test - name clashes within temporary files within bugs/caf/bug23766_X
Several test cases writing temporary files have been corrected.
2021-12-02 21:14:57 +03:00

23 lines
488 B
Plaintext
Executable File

puts "============"
puts "OCC23306: F a i l u r e s reading some attributes of BinOcaf document"
puts "============"
puts ""
set BugNumber OCC23306
NewDocument D1 BinOcaf
SetExtStringArray D1 0:1:1 0 1 3 String1 String2 String3
set aTmpFile ${imagedir}/${casename}.cbf
SaveAs D1 $aTmpFile
Close D1
set warn [Open $aTmpFile D2]
set info [lsearch $warn "warning:"]
file delete -force ${aTmpFile}
if { $info == -1 } {
puts "OK ${BugNumber}"
} else {
puts "Faulty ${BugNumber}"
}