mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +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:
parent
e816dce36e
commit
285b5189cd
@ -2,6 +2,9 @@ puts "========"
|
|||||||
puts "OCC79"
|
puts "OCC79"
|
||||||
puts "========"
|
puts "========"
|
||||||
|
|
||||||
|
set i_max 20
|
||||||
|
set dispMode 0
|
||||||
|
|
||||||
pload VISUALIZATION
|
pload VISUALIZATION
|
||||||
|
|
||||||
# disable VBO to avoid false memory leaks reported on NVIDIA graphics, see issue #29996
|
# disable VBO to avoid false memory leaks reported on NVIDIA graphics, see issue #29996
|
||||||
@ -10,14 +13,15 @@ vcaps -vbo 0
|
|||||||
|
|
||||||
vinit View1
|
vinit View1
|
||||||
restore [locate_data_file OCC162.brep] s
|
restore [locate_data_file OCC162.brep] s
|
||||||
vdisplay s
|
vdisplay -dispMode $dispMode s
|
||||||
|
|
||||||
set listmem {}
|
set listmem {}
|
||||||
set i_max 10
|
|
||||||
for {set i 1} {${i} <= ${i_max}} {incr i} {
|
for {set i 1} {${i} <= ${i_max}} {incr i} {
|
||||||
verase s
|
verase s
|
||||||
vdisplay s
|
vdisplay -dispMode $dispMode s
|
||||||
|
|
||||||
lappend listmem [meminfo h]
|
lappend listmem [meminfo h]
|
||||||
checktrend $listmem 0 1 "Memory leak detected"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
puts $listmem
|
||||||
|
checktrend $listmem 0 1 "Memory leak detected"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user