0024927: Getting rid of "Persistent" functionality -- Tests
[occt.git] / tests / bugs / caf / bug114
CommitLineData
5789daf9 1puts "==========="
2puts "OCC114"
3puts "==========="
4
5# Max number of iterations for computing memory leackage
9aa684ed 6set i_max 10
5789daf9 7puts "Amount of iterations is $i_max"
8
e837410d 9NewDocument D BinOcaf
5789daf9 10UndoLimit D 10
11
61c421bf 12restore [locate_data_file OCC294.brep] s
5789daf9 13
14set listmem {}
15for {set i 1} {${i} <= ${i_max}} {incr i} {
16
17 OpenCommand D
18 SetShape D 0:1 s
19 AbortCommand D
20
21 # check memory usage (with tolerance equal to half page size)
67a1064e 22 lappend listmem [meminfo h]
9aa684ed 23 checktrend $listmem 0 1 "Memory leak detected"
5789daf9 24}