mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
Fix for #23273 issue. Fix for #23273 issue (boolean/013/R9). Modifications of tests according to #23260 issue. Attempt to protect against hang-ups due to waiting for standard input change of behaviour of offset/shape_type_i/D7 case. Attempt to protect against hang-ups during initialization of menu in batch mode. increase cpulimit for parallel incmesh. #23260 is fixed. count_parallel is not needed anymore. Deleted unused code. change of behaviour of offset/shape_type_i/D7 case. The fix was incorrect. Second attempt to protect against hang-ups during initialization of menu in batch mode correction of tests in order to awoid instability. Elapsed time changed to CPU user time is performance tests. Processing of errors on Windows. Stop cpulimit killer if armed by test, after the test is completed
70 lines
1.5 KiB
Plaintext
Executable File
70 lines
1.5 KiB
Plaintext
Executable File
#INTERFACE CAF
|
|
#
|
|
#Sometimes this error is inside a log file, but it is outside in other case. The '?' character manage it.
|
|
#
|
|
puts "================"
|
|
puts "OCC1228"
|
|
puts "================"
|
|
puts ""
|
|
|
|
# Presentation attributes
|
|
#
|
|
# Testing attribute: TPrsStd_AISPresentation
|
|
#
|
|
# Testing command: AISSet
|
|
#
|
|
|
|
# ANALOG: puts "caf003-A4"
|
|
|
|
# Create a new document and set UndoLimit
|
|
NewDocument Doc BinOcaf
|
|
UndoLimit Doc 100
|
|
|
|
# Open a transaction
|
|
NewCommand Doc
|
|
|
|
# Set NamedShape attribute
|
|
box aBox1 100 200 300
|
|
set aLabel 0:2
|
|
SetShape Doc ${aLabel} aBox1
|
|
|
|
# Initialize 3D viewer
|
|
AISInitViewer Doc
|
|
|
|
# Add AISPresentation attribute with parameter NS
|
|
AISSet Doc ${aLabel} NS
|
|
|
|
# Display presentation of NamedShape in the viewer
|
|
AISDisplay Doc ${aLabel}
|
|
|
|
# Save the document
|
|
set aFile ${imagedir}/OCC1228-[file tail [info script]].cbf
|
|
file delete ${aFile}
|
|
catch {SaveAs Doc ${aFile}}
|
|
if { ![file exists ${aFile}] } {
|
|
puts "There is not ${aFile} file; SaveAs command: Error"
|
|
puts "OCC1228: ERROR (case 1)"
|
|
}
|
|
#catch {exec chmod 777 ${aFile}}
|
|
|
|
# Restore the document
|
|
Close Doc
|
|
catch {Open ${aFile} DDoc}
|
|
|
|
# Initialize 3D viewer
|
|
catch {AISInitViewer DDoc}
|
|
|
|
########## Add AISPresentation attribute with parameter NS
|
|
##########AISSet DDoc ${aLabel} NS
|
|
|
|
# Display presentation of NamedShape in the viewer
|
|
set IsDone [catch {AISDisplay DDoc ${aLabel}} aResult]
|
|
if { ${IsDone} != 0 } {
|
|
puts ${aResult}
|
|
puts "Get a value of TPrsStd_AISPresentation attribute from restoring document: Error"
|
|
puts "OCC1228: ERROR (case 2)"
|
|
} else {
|
|
puts "There is the box in the viewer"
|
|
puts "OCC1228: OK"
|
|
}
|