0028097: Test system does not recognize 'fail...' messages as errors
[occt.git] / tests / bugs / modalg_4 / bug825
CommitLineData
0e443e13 1puts "TODO OCC25915 ALL: FAILED during Triangulation"
2puts "TODO OCC25915 ALL: Triangulation FAILED for 1 of 2 Faces"
9aa684ed 3puts "TODO OCC25915 ALL: Faulty OCC825"
a09c8f3a 4puts "TODO OCC25915 ALL: Faulty shapes in variables faulty_1 to faulty_"
f1aa2b62 5
6pload QAcommands
7
8puts "============"
9puts "OCC825"
10puts "============"
11puts ""
12######################################
13## BRepAlgoAPI_Cut fails on sphere and b-spline face
14######################################
352ffd73 15## (old topology)
16#####################################
f1aa2b62 17
431d0f18 18if { [ catch { set info_result [OCC825 a1 a2 a3 res1 res2] } ] } {
352ffd73 19 puts "Faulty OCC825"
f1aa2b62 20} else {
352ffd73 21 if { [regexp {FAILED} $info_result] } {
191478a5 22 puts "Faulty OCC825"
f1aa2b62 23 }
352ffd73 24
25 set ExplodeList [explode res1]
f1aa2b62 26 if {[llength ${ExplodeList}] < 1} {
191478a5 27 puts "Faulty OCC825"
f1aa2b62 28 }
352ffd73 29
30 set ExplodeList [explode res2]
f1aa2b62 31 if {[llength ${ExplodeList}] < 1} {
191478a5 32 puts "Faulty OCC825"
f1aa2b62 33 }
191478a5 34
431d0f18 35 checkshape res1
36 checkprops res1 -s 5890.42
a4eba920 37 checknbshapes res1 -face 2 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 15
191478a5 38
352ffd73 39 renamevar res2 result
f1aa2b62 40}
41
58cf74e0 42checkshape result
431d0f18 43checkprops result -s 5890.42
44
5747059b 45checkview -display result -2d -path ${imagedir}/${test_image}.png
431d0f18 46
47