]> OCCT Git - occt-copy.git/commitdiff
0026513: Offset API not returning result (seems to be "hanging")
authorapv <apv@opencascade.com>
Wed, 23 Dec 2015 15:31:21 +0000 (18:31 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 13 Jan 2016 11:55:23 +0000 (14:55 +0300)
Test case for issue #26513

Update of test case for issue #26513

tests/bugs/modalg_6/bug26513 [new file with mode: 0644]

diff --git a/tests/bugs/modalg_6/bug26513 b/tests/bugs/modalg_6/bug26513
new file mode 100644 (file)
index 0000000..998ef00
--- /dev/null
@@ -0,0 +1,32 @@
+puts "========"
+puts "OCC26513"
+puts "========"
+puts ""
+###########################################################
+# Offset API not returning result (seems to be "hanging")
+###########################################################
+
+set max_time 10
+
+smallview
+
+restore [locate_data_file bug26513-offset_input.brep] a
+
+offsetparameter 1.e-7 c i
+offsetload a 5
+
+dchrono cr reset
+dchrono cr start
+offsetperform result
+dchrono cr stop
+
+set chrono_info [dchrono cr show]
+regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
+if { $CPU_time > ${max_time} } {
+  puts "ERROR: OCC26513 is reproduced. Offset operation is too long (> $max_time sec)"
+}
+
+donly result
+fit
+
+set only_screen_axo 1