mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0028841: testdiff DRAW command hangs or crash with arithmetical exception
This commit is contained in:
parent
2c26a53d85
commit
6ae0790866
@ -1873,7 +1873,11 @@ proc _diff_img_name {dir1 dir2 casepath imgfile} {
|
|||||||
|
|
||||||
# auxiliary procedure to produce string comparing two values
|
# auxiliary procedure to produce string comparing two values
|
||||||
proc _diff_show_ratio {value1 value2} {
|
proc _diff_show_ratio {value1 value2} {
|
||||||
return "$value1 / $value2 \[[format "%+5.2f%%" [expr 100 * ($value1 - $value2) / double($value2)]]\]"
|
if {[expr double ($value2)] == 0.} {
|
||||||
|
return "$value1 / $value2"
|
||||||
|
} else {
|
||||||
|
return "$value1 / $value2 \[[format "%+5.2f%%" [expr 100 * ($value1 - $value2) / double($value2)]]\]"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# procedure to check cpu user time
|
# procedure to check cpu user time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user