1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0032246: Tests, Visualization - unstable test case bugs/vis/bug79 reporting memory leak

Test case has been adjusted to check memory trend after the loop.
This commit is contained in:
kgv 2021-03-25 15:26:37 +03:00 committed by bugmaster
parent e816dce36e
commit 285b5189cd

View File

@ -2,6 +2,9 @@ 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
@ -10,14 +13,15 @@ vcaps -vbo 0
vinit View1
restore [locate_data_file OCC162.brep] s
vdisplay s
vdisplay -dispMode $dispMode s
set listmem {}
set i_max 10
for {set i 1} {${i} <= ${i_max}} {incr i} {
verase s
vdisplay s
vdisplay -dispMode $dispMode s
lappend listmem [meminfo h]
checktrend $listmem 0 1 "Memory leak detected"
}
puts $listmem
checktrend $listmem 0 1 "Memory leak detected"