0027802: [Regression to 7.0] Solid classifier raises exception ConstructionError
[occt.git] / tests / bugs / modalg_6 / bug26914
CommitLineData
525ec87c 1puts "========"
2puts "OCC26914"
3puts "========"
4puts ""
5#################################
6# Hang in surface approximation
7#################################
8
9set max_time 2
10
360f800b 11restore [locate_data_file bug23943_s.draw] s
525ec87c 12
13dchrono cr reset
14dchrono cr start
15approxsurf rs s 5e-5 0 0 15 15 100 0
16
17dchrono cr stop
18
19set chrono_info [dchrono cr show]
20regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
21if { $CPU_time > ${max_time} } {
22 puts "Elapsed time of surface approximation is more than ${max_time} seconds - Error"
23} else {
24 puts "Elapsed time of surface approximation is less than ${max_time} seconds - OK"
25}