0025670: Incorrect sprops/vprops/lprops check in heal drop_small_solids test cases
authorapn <apn@opencascade.com>
Thu, 23 Apr 2015 09:32:53 +0000 (12:32 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 6 May 2015 12:03:00 +0000 (15:03 +0300)
Procedure cmpprops in tests/heal/drop_small_solids/end is modified to correctly access top-level variables

tests/heal/drop_small_solids/end

index 0ffa046..49bd515 100644 (file)
@@ -9,9 +9,10 @@ proc parseprops a {
     ]+([-0-9.+eE]+)[\t ]+([-0-9.+eE]+)[\t ]+([-0-9.+eE]+)} $a]
 }
 
-proc cmpprops {cmd a b} {
-  set aa [parseprops [$cmd $a]]
-  set bb [parseprops [$cmd $b]]
+proc cmpprops {cmd shape1 shape2} {
+  upvar $shape1 a $shape2 b
+  set aa [parseprops [$cmd a]]
+  set bb [parseprops [$cmd b]]
   for {set i 1} {$i < [llength $aa]} {incr i} {
     if {[expr abs([lindex $aa $i] - [lindex $bb $i])] > 1e-8} {return 0}
   }