0023818: Extend OSD_MemInfo to report C heap statistics
[occt.git] / tests / bugs / fclasses / bug7287_6
CommitLineData
352ffd73 1puts "============"
2puts "OCC7287"
3puts "============"
4puts ""
5######################################################
6# Problem of Memory Leak
7######################################################
8
9#
10# Result is not Null shape
11#
12
13set BugNumber OCC7287
14
15set NCycles 1000
16box b1 10 10 10 100 100 100
17box b2 50 50 50
18bop b1 b2
19
20for {set i 1} {${i} <= ${NCycles}} {incr i } {
21 bopsection r
22
67a1064e 23 lappend listmem [meminfo h]
352ffd73 24 if { [checktrend $listmem 0 1 "Memory leak detected"] } {
67a1064e 25 puts "No memory leak, $i iterations"
26 break
352ffd73 27 }
28}
29