1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
kgv 285b5189cd 0032246: Tests, Visualization - unstable test case bugs/vis/bug79 reporting memory leak
Test case has been adjusted to check memory trend after the loop.
2021-03-27 13:46:02 +03:00

28 lines
494 B
Plaintext

puts "========"
puts "OCC79"
puts "========"
set i_max 20
set dispMode 0
pload VISUALIZATION
# disable VBO to avoid false memory leaks reported on NVIDIA graphics, see issue #29996
pload OPENGL
vcaps -vbo 0
vinit View1
restore [locate_data_file OCC162.brep] s
vdisplay -dispMode $dispMode s
set listmem {}
for {set i 1} {${i} <= ${i_max}} {incr i} {
verase s
vdisplay -dispMode $dispMode s
lappend listmem [meminfo h]
}
puts $listmem
checktrend $listmem 0 1 "Memory leak detected"