1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00
Files
occt/tests/bugs/caf/bug31546
mpv f8c45c2f0d 0032894: Application Framework - Regressions on Ubuntu 20.04
Updated corrupted file reading error management, make memory unit-tests more stable.
2022-06-20 17:45:27 +03:00

25 lines
686 B
Plaintext

puts "==========="
puts "0031546: Application Framework - Memory leak (100 bytes) on Load / Close OCAF document"
puts "==========="
puts "Preparing empty document"
set docname ${imagedir}/${casename}.cbf
NewDocument D BinOcaf
SaveAs D $docname
Close D
# make the first open/close iteration before checking memory because some filled structures
# are cleared on start of the next open (like mySections in DocumentRetrievalDriver)
Open $docname D
Close D
puts "Executing Load / Close in cycle to see if allocated heap memory grows"
set listmem {}
for {set i 1} {$i < 10} {incr i} {
Open $docname D
Close D
lappend listmem [meminfo h]
checktrend $listmem 50 50 "Memory leak"
}