0032243: Tests - unexpected file artifact s.stl at the root of repository

Several test cases have been corrected to avoid creation
of temporary files s.stl, comp_nonmanifold.step, bug31301_1.stp at unexpected location.
This commit is contained in:
kgv
2021-03-24 10:52:51 +03:00
committed by bugmaster
parent 0d828ac838
commit 6387996871
5 changed files with 21 additions and 13 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
testreadstep [locate_data_file bug31301.stp] s
testwritestep bug31301_1.stp s
testreadstep bug31301_1.stp s1
set aTmpFile "$imagedir/${casename}.stp"
testwritestep "$aTmpFile" s
testreadstep "$aTmpFile" s1
file delete "$aTmpFile"
checkshape s1 f
checkmaxtol s1 -ref 0.0078
checkmaxtol s1 -ref 0.0078
+5 -3
View File
@@ -1,5 +1,7 @@
restore [locate_data_file bug31301_2.brep] s
testwritestep bug31301_1.stp s
testreadstep bug31301_1.stp s1
set aTmpFile "$imagedir/${casename}.stp"
testwritestep "$aTmpFile" s
testreadstep "$aTmpFile" s1
file delete "$aTmpFile"
checkshape s1 f
checkmaxtol s1 -ref 0.000247
checkmaxtol s1 -ref 0.000247
+4 -3
View File
@@ -7,9 +7,10 @@ brestore [locate_data_file bug31485.brep] a
param write.step.nonmanifold 1
testwritestep comp_nonmanifold.step a
testreadstep comp_nonmanifold.step result
set aTmpFile "$imagedir/${casename}.step"
testwritestep "$aTmpFile" a
testreadstep "$aTmpFile" result
file delete "$aTmpFile"
checkshape result
checknbshapes result -face 3
+4 -3
View File
@@ -7,9 +7,10 @@ brestore [locate_data_file bug31617.brep] a
param write.step.nonmanifold 1
testwritestep comp_nonmanifold.step a
testreadstep comp_nonmanifold.step result
set aTmpFile "$imagedir/${casename}.step"
testwritestep "$aTmpFile" a
testreadstep "$aTmpFile" result
file delete "$aTmpFile"
checkshape result
checknbshapes result -ref [lrange [nbshapes a] 11 16]
+3 -1
View File
@@ -1,7 +1,9 @@
sphere s 10
tessellate result s 100 100
XProgress +t
set out [writestl result s.stl]
set aTmpFile "$imagedir/${casename}.stl"
set out [writestl result "$aTmpFile"]
file delete "$aTmpFile"
set expected {
{Progress: 0%}