0025987: Integration part of modified unstable test cases
[occt.git] / tests / bugs / mesh / bug25378_1_3
CommitLineData
74da0216 1puts "============"
2puts "CR25378"
3puts "============"
4puts ""
5###################################################################################
6# Building of triangulation for distored surfaces can take very long using BRepMesh_IncrementalMesh
9aa684ed 7#
8# Test case was created to control bad situation, building of triangulation takes
9# very long time and it is expected by the meaning of issue #25378.
10# Case when it is passed too fast should be considered as failure.
74da0216 11###################################################################################
12
9aa684ed 13cpulimit 2000
74da0216 14
15restore [locate_data_file bug25378_Blower_bad.brep] b
16trinfo b
17
18tclean b
19set t_001 [expr [lindex [time {incmesh b 0.001}] 0]/1000000]
20puts "t_001=${t_001}"
21trinfo b
22
23if { [regexp {Debug mode} [dversion]] } {
24 cpulimit 2000
9aa684ed 25 set max_t_001 600
74da0216 26} else {
27 if { [regexp {Windows} [dversion]] } {
9aa684ed 28 set max_t_001 360
74da0216 29 } else {
9aa684ed 30 set max_t_001 400
74da0216 31 }
32}
33
9aa684ed 34if {${max_t_001} > ${t_001}} {
35 puts "Error. Time of building of triangulation, ${t_001} seconds, is less than expected minimum time - ${max_t_001} seconds"
36}