1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

Modify test cases according using imagedir folder for saving tmp files

This commit is contained in:
apn 2016-11-23 19:33:47 +03:00 committed by abv
parent cde381c4e2
commit 1dd28279c8
2 changed files with 7 additions and 4 deletions
tests/bugs/caf

@ -11,16 +11,18 @@ pload OCAF MODELING
# just a big shape to fit in memory
restore [locate_data_file $aBigShape] s
file delete ${imagedir}/test.cbf
# store it in the document
NewDocument D BinOcaf
SetShape D "0:2" s
SaveAs D test.cbf
SaveAs D ${imagedir}/test.cbf
Close D
# store the memory used before opening a document
set aBefore [meminfo h]
Open test.cbf DD
Open ${imagedir}/test.cbf DD
set aDocLoaded [meminfo h]
set aBigDelta [expr $aDocLoaded - $aBefore]
Close DD

@ -23,11 +23,12 @@ vrotate 3 0 0
vsetdispmode 1
vdump $anImgDoc1
file delete ${imagedir}/test.xbf
StoreTriangulation 1
SaveAs D test.xbf
SaveAs D ${imagedir}/test.xbf
Close D
XOpen test.xbf D
XOpen ${imagedir}/test.xbf D
XShow D
vsetdispmode 1
vaxo