1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00

Adjusting testing case for debug mode

This commit is contained in:
bugmaster 2014-07-18 12:36:39 +04:00
parent 2df4b1d33d
commit 95f8573c29

View File

@ -49,7 +49,13 @@ Close D
# Check # Check
set info [dchrono h show] set info [dchrono h show]
regexp {CPU user time: ([-0-9.+eE]+) seconds} $info full cpu_time regexp {CPU user time: ([-0-9.+eE]+) seconds} $info full cpu_time
if { $cpu_time > 100 } {
set max_time 100
if { [regexp {Debug mode} [dversion]] } {
set max_time 200
}
if { $cpu_time > ${max_time} } {
puts "Error: performance saving document D is too low" puts "Error: performance saving document D is too low"
} else { } else {
puts "OK: performance saving document D is high" puts "OK: performance saving document D is high"