0028345: Data Exchange - Reading STEP model using STEPCAF crashes
authordpasukhi <dpasukhi@opencascade.com>
Tue, 14 Apr 2020 08:51:56 +0000 (11:51 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 23 Jul 2020 13:08:19 +0000 (16:08 +0300)
# Add test to verify import
* Note: Each layer contains a valid name, but only one contains a link to the shape, so .step file contains only one valid Layer.

tests/bugs/step/bug28345 [new file with mode: 0644]

diff --git a/tests/bugs/step/bug28345 b/tests/bugs/step/bug28345
new file mode 100644 (file)
index 0000000..ff9be0c
--- /dev/null
@@ -0,0 +1,15 @@
+puts "# ====================================================================="
+puts "# 0028345: Data Exchange - Reading STEP model using STEPCAF crashes"
+puts "# ====================================================================="
+puts ""
+
+pload DCAF
+ReadStep D_1 [locate_data_file bug28345_30338.stp]
+
+# Check imported names
+set info [XGetAllLayers D_1]
+if { [regexp "COMPONENTS" $info] != 1 } {
+   puts "Error : wrong layer name"
+}
+
+Close D_1