Modified cpulimits in test cases in Debug mode.
authorapn <apn@opencascade.com>
Fri, 11 Jul 2014 08:29:19 +0000 (12:29 +0400)
committerapn <apn@opencascade.com>
Fri, 11 Jul 2014 08:29:19 +0000 (12:29 +0400)
Modified test case mesh/data/standard/V4 for issue 24968.

tests/bugs/mesh/bug24968_1
tests/bugs/mesh/bug24968_2
tests/mesh/data/standard/V4

index 4e1ad86..8452315 100644 (file)
@@ -6,6 +6,8 @@ puts ""
 # Impove BRepMesh_Classifier to cope with intersection of huge number of wires
 #####################################
 
+cpulimt 2500
+
 restore [locate_data_file bug24968_Shape_1.brep] result
 
 tclean result
@@ -19,9 +21,9 @@ regexp {CPU user time: ([-0-9.+eE]+) seconds} ${info} full cpu_time
 
 if { [regexp {Debug mode} [dversion]] } {
   if { [regexp {Windows} [dversion]] } {
-    set max_time 100
+    set max_time 2500
   } else {
-    set max_time 250
+    set max_time 2500
   }
 } else {
   if { [regexp {Windows} [dversion]] } {
index 4a21d20..0c21ea3 100644 (file)
@@ -6,6 +6,8 @@ puts ""
 # Impove BRepMesh_Classifier to cope with intersection of huge number of wires
 #####################################
 
+cpulimit 2500
+
 restore [locate_data_file bug24968_Shape_1.brep] result
 
 tclean result
@@ -19,9 +21,9 @@ regexp {CPU user time: ([-0-9.+eE]+) seconds} ${info} full cpu_time
 
 if { [regexp {Debug mode} [dversion]] } {
   if { [regexp {Windows} [dversion]] } {
-    set max_time 100
+    set max_time 2500
   } else {
-    set max_time 250
+    set max_time 2500
   }
 } else {
   if { [regexp {Windows} [dversion]] } {
index ee1e56f..1a567de 100755 (executable)
@@ -1,5 +1,7 @@
 set TheFileName shading_wrongshape_015.brep
 set bug_withouttri "OCC22687"
-###set bug_freenodes "OCC23105"
-###set nbfreenodes(ALL) 4
+if { [string compare $command "shading"] != 0 } {
+   set bug_freenodes "OCC23105"
+   set nbfreenodes(ALL) 4
+}
 set nbwithouttri(All) 5