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:
parent
2df4b1d33d
commit
95f8573c29
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user