]> OCCT Git - occt.git/commitdiff
0031998: Tests - unexpected file artifact at the root of repository
authorasuraven <asuraven@opencascade.com>
Wed, 16 Dec 2020 14:28:36 +0000 (17:28 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 18 Dec 2020 16:48:03 +0000 (19:48 +0300)
Saving path for .obj file changed

tests/demo/draw/bug31908

index 217c5263ff8c4edc35330cdc3855234cb98958cc..90db0917a2c9273ac856128353522a5d5e317640 100644 (file)
@@ -4,5 +4,13 @@ puts "=========="
 puts ""
 pload MODELING 
 box b 10 20 30
-wavefront b the_name_of_saved_with_wavefront_command_box_that_measures_10_20_30_and_has_length_of_its_name_longer_than_100_characters
+
+# this test check use wavefront command with long file name
+set file_name "${imagedir}/${casename}"
+set path_length [string length $file_name]
+# but full path must be less than 255
+for {set i $path_length} {$i < 255} {incr i} {
+  append file_name "1"
+}
+wavefront b ${file_name}
 puts "TEST COMPLETED"