0027532: Errors on reading stp-file
[occt.git] / tests / bugs / modalg_6 / bug26929
CommitLineData
afb27815 1puts "============"
2puts "OCC26929"
3puts "============"
4puts ""
5#############################################################################################
6## Extrema_ECC hang/crash in ShapeSplitter
7#############################################################################################
8cpulimit 100
9
10restore [locate_data_file OCC26629-face.brep] aF
11restore [locate_data_file OCC26629-edge.brep] aE
12
13pload MODELING
14
15# Hang check.
16dchrono cr reset
17dchrono cr start
18
19set ss ""
20foreach s [explode aE e] {set ss "$ss aF $s"}
21eval splitshape result aF $ss
22
23dchrono cr stop
24
25set max_time 20.0
26set log [dchrono cr show]
27regexp {CPU user time: ([-0-9.+eE]+) seconds} $log full z
28
29
30if { $z > ${max_time} } {
31 puts "Elapsed time of BRepFeat_SplitShape is more than ${max_time} seconds - Error"
32} else {
33 puts "Elapsed time of BRepFeat_SplitShape is less than ${max_time} seconds - OK"
34}
35
36# Check result validity.
37checkshape result
38
39# Visual check.
40set 2dviewer 1