0032246: Tests, Visualization - unstable test case bugs/vis/bug79 reporting memory...
[occt.git] / tests / v3d / memory / bug79
1 puts "========"
2 puts "OCC79"
3 puts "========"
4
5 set i_max 20
6 set dispMode 0
7
8 pload VISUALIZATION
9
10 # disable VBO to avoid false memory leaks reported on NVIDIA graphics, see issue #29996
11 pload OPENGL
12 vcaps -vbo 0
13
14 vinit View1
15 restore [locate_data_file OCC162.brep] s
16 vdisplay -dispMode $dispMode s
17
18 set listmem {}
19 for {set i 1} {${i} <= ${i_max}} {incr i} {
20   verase s
21   vdisplay -dispMode $dispMode s
22
23   lappend listmem [meminfo h]
24 }
25
26 puts $listmem
27 checktrend $listmem 0 1 "Memory leak detected"