1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-20 12:45:50 +03:00
occt/tests/bugs/fclasses/bug7287_1
omy 5a77460e4a 0023901: Memory leaks in tests.
1. Removed cyclic reference. Removed field myCommonBlock from BOPDS_PaveBlock;
2. Added data map myMapPBCB in BOPDS_DS. It contains pairs (PaveBlock, CommonBlock);
3. All methods about common block have been shifted from BOPDS_PaveBlock to BOPDS_DS;
4. Test case bugs moddata_2 pro19422_2 has been rewritten to build the correct result.
Test case corrected (TODO removed)
2013-05-23 12:02:14 +04:00

30 lines
559 B
Plaintext
Executable File

puts "============"
puts "OCC7287"
puts "============"
puts ""
######################################################
# Problem of Memory Leak
######################################################
#
# Result is Null shape
#
set BugNumber OCC7287
set NCycles 100
box b1 100 100 100
box b2 50 50 50
set listmem {}
for {set i 1} {${i} <= ${NCycles}} {incr i } {
bop b1 b2
bopcut r
lappend listmem [meminfo h]
if { [checktrend $listmem 0 100 "Memory leak detected"] } {
puts "No memory leak, $i iterations"
break
}
}