]> OCCT Git - occt-copy.git/commitdiff
Test for 0023671: pload function does not work if DRAWDEFAULT file has win format CR23671
authormkv <mkv@opencascade.com>
Wed, 26 Jul 2017 13:57:08 +0000 (16:57 +0300)
committermkv <mkv@opencascade.com>
Wed, 26 Jul 2017 13:57:08 +0000 (16:57 +0300)
tests/bugs/demo/bug23671 [new file with mode: 0755]

diff --git a/tests/bugs/demo/bug23671 b/tests/bugs/demo/bug23671
new file mode 100755 (executable)
index 0000000..b6dd7dd
--- /dev/null
@@ -0,0 +1,40 @@
+puts "TODO CR23671 Linux: Error"
+puts "TODO CR23671 Linux: Draw_Failure: Could not open"
+
+puts "============"
+puts "CR23671"
+puts "============"
+puts ""
+##########################################################################################################
+# pload function does not work if $DRAWDEFAULT file has win format
+##########################################################################################################
+
+set aDrawPlugin [locate_data_file DrawPlugin]
+set aDrawPluginDefaults [ file dirname ${aDrawPlugin} ]
+
+dgetenv CSF_DrawPluginDefaults
+dgetenv DRAWDEFAULT
+
+dsetenv CSF_DrawPluginDefaults ${aDrawPluginDefaults}
+dsetenv DRAWDEFAULT ${aDrawPlugin}
+
+dgetenv CSF_DrawPluginDefaults
+dgetenv DRAWDEFAULT
+
+if [catch {pload} info] {
+  puts "Error: pload function does not work if \$DRAWDEFAULT file has win format"
+} else {
+  puts "OK: pload function work if \$DRAWDEFAULT file has win format"
+}
+
+if [catch {pload -DrawPlugin} info] {
+  puts "Error: pload function does not work if \$DRAWDEFAULT file has win format"
+} else {
+  puts "OK: pload function work if \$DRAWDEFAULT file has win format"
+}
+
+if [catch {pload XDE} info] {
+  puts "Error: pload function does not work if \$DRAWDEFAULT file has win format"
+} else {
+  puts "OK: pload function work if \$DRAWDEFAULT file has win format"
+}