Modify test cases according using imagedir folder for saving tmp files
[occt.git] / tests / bugs / caf / bug27604
index 8d2806b..5f5c9d5 100644 (file)
@@ -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