From: kgv Date: Thu, 25 Mar 2021 12:26:37 +0000 (+0300) Subject: 0032246: Tests, Visualization - unstable test case bugs/vis/bug79 reporting memory... X-Git-Tag: V7_6_0_beta~210 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=285b5189cd498e46a8428c3415d0fac5b138e74e;p=occt.git 0032246: Tests, Visualization - unstable test case bugs/vis/bug79 reporting memory leak Test case has been adjusted to check memory trend after the loop. --- diff --git a/tests/v3d/memory/bug79 b/tests/v3d/memory/bug79 index 5ef3e74e42..a39a7f6611 100644 --- a/tests/v3d/memory/bug79 +++ b/tests/v3d/memory/bug79 @@ -2,6 +2,9 @@ puts "========" puts "OCC79" puts "========" +set i_max 20 +set dispMode 0 + pload VISUALIZATION # disable VBO to avoid false memory leaks reported on NVIDIA graphics, see issue #29996 @@ -10,14 +13,15 @@ vcaps -vbo 0 vinit View1 restore [locate_data_file OCC162.brep] s -vdisplay s +vdisplay -dispMode $dispMode s set listmem {} -set i_max 10 for {set i 1} {${i} <= ${i_max}} {incr i} { verase s - vdisplay s + vdisplay -dispMode $dispMode s lappend listmem [meminfo h] - checktrend $listmem 0 1 "Memory leak detected" } + +puts $listmem +checktrend $listmem 0 1 "Memory leak detected"