0032237: Visualization, TKOpenGl - fix Gouraud shading within perspective camera...
[occt.git] / tests / bugs / vis / bug29412
CommitLineData
9fb8f3f1 1puts "# ==================================================================="
2puts "# 0029412: Huge Memory leak since I upgraded to OC 6.9.0"
3puts "# ==================================================================="
4puts ""
5
6pload VISUALIZATION
b8db9379 7pload OPENGL
9fb8f3f1 8vcaps -vsync 0
9vinit View1
10vglinfo
11
12OCC29412 100 ;# just to initialize
13
14meminfo
15vmemgpu
16
17set heap_before [meminfo heap]
18OCC29412
19set heap_after [meminfo heap]
20
21meminfo
22vmemgpu
23
24# check that memory increase is moderate: can be up to 75 KiB on Debian;
25# note that the leak in OCCT 6.9.0 - 7.0.0 was ~ 19 MiB
26if { $heap_after - $heap_before > 100 * 1024 } {
27 puts "Error: memory leak of [expr ($heap_after - $heap_before) / 1024] KiB"
28}