1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
mnt 53a1447a00 0029133: Unstable test cases
Adding new and early removed for some reasons test cases

Removing TODO ?

Adding necessary TODO ? on corresponding platforms for OK and BAD cases
2017-11-02 17:02:45 +03:00

50 lines
1.6 KiB
Plaintext

puts "TODO OCC24296 Linux: OCC309: Error 2"
puts "TODO OCC24296 MacOS: OCC309: Error 2"
puts "================"
puts "OCC309"
puts "================"
puts ""
pload QAcommands
set result [OCC309]
set ll [llength ${result}]
if { ${ll} != 2 } {
puts "result = ${result}"
puts "length = ${ll}"
puts "OCC309: Error 0"
} else {
set result1 [lindex ${result} 0]
set result2 [lindex ${result} 1]
set CurrentDirectory [pwd]
set UpTrek "[file join [file dirname [file dirname ${CurrentDirectory}]] [file tail ${CurrentDirectory}]]"
if { [checkplatform -windows] } {
set res1 [ string range $result1 3 [expr [string length $result1] -2 ] ]
set res2 [ string range $result2 3 [expr [string length $result2] -2 ] ]
set CurrentDirectory [ string range $CurrentDirectory 2 [expr [string length $CurrentDirectory] -1 ]]
set UpTrek [ string range $UpTrek 2 [expr [string length $UpTrek] -1 ]]
} else {
set res1 [ string range $result1 1 [expr [string length $result1] -3 ] ]
set res2 [ string range $result2 1 [expr [string length $result2] -3 ] ]
}
if {[string compare ${res1} "${CurrentDirectory}"] == 0} {
puts "OCC309: OK 1"
} else {
puts "result1 = ${result1}"
puts "res1 = ${res1}"
puts "CurrentDirectory = ${CurrentDirectory}"
puts "OCC309: Error 1"
}
if {[string compare ${res2} "${UpTrek}"] == 0} {
puts "OCC309: OK 2"
} else {
puts "result2 = ${result2}"
puts "res2 = ${res2}"
puts "UpTrek = ${UpTrek}"
puts "OCC309: Error 2"
}
}